(userId int)
| 99 | } |
| 100 | |
| 101 | func GetConnectionId(userId int) connections.ConnectionId { |
| 102 | userManagerMu.RLock() |
| 103 | defer userManagerMu.RUnlock() |
| 104 | |
| 105 | if user, ok := userManager.Users[userId]; ok { |
| 106 | return user.connectionId |
| 107 | } |
| 108 | return 0 |
| 109 | } |
| 110 | |
| 111 | func GetConnectionIds(userIds []int) []connections.ConnectionId { |
| 112 | userManagerMu.RLock() |
no outgoing calls
no test coverage detected