(srv *Server, userID uint)
| 559 | } |
| 560 | |
| 561 | func countSessionsForUser(srv *Server, userID uint) int { |
| 562 | count := 0 |
| 563 | for _, currentSession := range srv.sessions { |
| 564 | if currentSession != nil && currentSession.userID == userID { |
| 565 | count++ |
| 566 | } |
| 567 | } |
| 568 | return count |
| 569 | } |
no outgoing calls
no test coverage detected