MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / countSessionsForUser

Function countSessionsForUser

server/mcp/handler_test.go:561–569  ·  view source on GitHub ↗
(srv *Server, userID uint)

Source from the content-addressed store, hash-verified

559}
560
561func 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}

Calls

no outgoing calls

Tested by

no test coverage detected