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