chore: cleaning unused mutex

This commit is contained in:
2025-09-26 09:16:35 +07:00
parent 4111dd0f25
commit f32d97eac4
5 changed files with 8 additions and 41 deletions

View File

@@ -19,7 +19,6 @@ type Client struct {
Send chan []byte
SubscribedPath string
done chan struct{}
mu *CustomRwMutex
}
func NewClient(conn *websocket.Conn, subscribedPath string) *Client {
@@ -28,7 +27,6 @@ func NewClient(conn *websocket.Conn, subscribedPath string) *Client {
Send: make(chan []byte, 64),
SubscribedPath: subscribedPath,
done: make(chan struct{}),
mu: NewCustomRwMutex(),
}
}
@@ -37,8 +35,6 @@ type Hub struct {
Broadcast chan []byte
Register chan *Client
Unregister chan *Client
writeMu *CustomRwMutex
readMu *CustomRwMutex
}
func NewHub() *Hub {
@@ -47,7 +43,6 @@ func NewHub() *Hub {
Register: make(chan *Client),
Unregister: make(chan *Client),
Clients: make(map[*Client]bool),
writeMu: NewCustomRwMutex(),
}
}