reid 2 rokov pred
rodič
commit
23da465934
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      auth/auth.go

+ 2 - 2
auth/auth.go

@@ -24,13 +24,13 @@ var (
 	// tokenid's can be referenced from the global conf
 	AuthenticatedClients = struct {
 		Conns map[*websocket.Conn]string
-		sync.Mutex
+		sync.RWMutex
 	}{
 		Conns: make(map[*websocket.Conn]string),
 	}
 	UnauthClients = struct {
 		Conns map[*websocket.Conn]string
-		sync.Mutex
+		sync.RWMutex
 	}{
 		Conns: make(map[*websocket.Conn]string),
 	}