Files
chat/internal/handlers/handlers.go
user 910a5c2606
All checks were successful
check / check (push) Successful in 1m57s
fix: OnStart ctx bug, rename session→user, full logout cleanup
- Use context.Background() for cleanup goroutine instead of
  OnStart ctx which is cancelled after startup completes
- Rename GetSessionCount→GetUserCount, DeleteStaleSessions→
  DeleteStaleUsers to reflect that sessions represent users
- HandleLogout now fully cleans up when last client disconnects:
  parts all channels (notifying members via QUIT), removes
  empty channels, and deletes the session/user record
- docker build passes, all tests green, 0 lint issues
2026-02-28 11:14:23 -08:00

3.7 KiB