This commit is contained in:
GitProtogen
2026-03-17 18:54:04 +01:00
parent bbd3d390c2
commit 912136e2bc
6 changed files with 104 additions and 52 deletions
+6 -1
View File
@@ -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) {
}