idk
This commit is contained in:
@@ -4,6 +4,7 @@ import "sync"
|
||||
|
||||
var (
|
||||
mu sync.RWMutex
|
||||
Clients = make(map[uint32]Client)
|
||||
ChatGroups = make(map[uint32]ChatGroup)
|
||||
ClientsMap = make(map[uint32]map[uint32]*Client)
|
||||
)
|
||||
@@ -22,7 +23,7 @@ func RemoveGroupFromCache(chatGroup *ChatGroup) {
|
||||
delete(ClientsMap, chatGroup.Id)
|
||||
}
|
||||
|
||||
func AddUserToCache(client *Client) {
|
||||
func AddAuthenticatedClientToCache(client *Client) {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
for _, groupIn := range client.Groups {
|
||||
@@ -41,3 +42,7 @@ func RemoveClientFromCache(client *Client) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func GetClientData(uint32 *Client) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user