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

Method deleteSession

server/mcp/handler.go:390–394  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

388}
389
390func (s *Server) deleteSession(id string) {
391 s.mu.Lock()
392 defer s.mu.Unlock()
393 delete(s.sessions, id)
394}
395
396func (s *Server) pruneExpiredSessionsLocked(now time.Time) {
397 for id, currentSession := range s.sessions {

Callers 1

handleDeleteMethod · 0.95

Calls 1

UnlockMethod · 0.65

Tested by

no test coverage detected