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

Method pruneExpiredSessionsLocked

server/mcp/handler.go:396–402  ·  view source on GitHub ↗
(now time.Time)

Source from the content-addressed store, hash-verified

394}
395
396func (s *Server) pruneExpiredSessionsLocked(now time.Time) {
397 for id, currentSession := range s.sessions {
398 if currentSession == nil || sessionExpired(currentSession, now) {
399 delete(s.sessions, id)
400 }
401 }
402}
403
404func (s *Server) pruneLeastRecentlyUsedSessionsLocked(count int) {
405 for range count {

Callers 2

initializeSessionMethod · 0.95
createSessionMethod · 0.95

Calls 1

sessionExpiredFunction · 0.85

Tested by

no test coverage detected