(userId int)
| 168 | } |
| 169 | |
| 170 | func GetByUserId(userId int) *UserRecord { |
| 171 | userManagerMu.RLock() |
| 172 | defer userManagerMu.RUnlock() |
| 173 | |
| 174 | if user, ok := userManager.Users[userId]; ok { |
| 175 | return user |
| 176 | } |
| 177 | |
| 178 | return nil |
| 179 | } |
| 180 | |
| 181 | func GetByConnectionId(connectionId connections.ConnectionId) *UserRecord { |
| 182 | userManagerMu.RLock() |
no outgoing calls
no test coverage detected