Skip to content

Commit

Permalink
lint warning: required comment added
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jun 24, 2021
1 parent 8ca3a97 commit 2aba8dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/sessionstore.go
Expand Up @@ -150,6 +150,7 @@ func (ss *SessionStore) Delete(s *Session) {
statsSet("LiveSessions", int64(len(ss.sessCache)))
}

// Range calls given function for all sessions. It stops if the function returns false.
func (ss *SessionStore) Range(f func(sid string, s *Session) bool) {
ss.lock.Lock()
for sid, s := range ss.sessCache {
Expand Down

0 comments on commit 2aba8dd

Please sign in to comment.