converted the sessions map to a pointer map, removed un-needed updates and locks

This commit is contained in:
2025-11-16 09:26:04 +03:00
parent 1fff42b4e0
commit abe146f7ec
3 changed files with 2 additions and 9 deletions

View File

@@ -46,7 +46,7 @@ func createSession(w http.ResponseWriter, r *http.Request) {
}
sessionsMu.Lock()
openSessions[session.id] = session
openSessions[session.id] = &session
sessionsMu.Unlock()
fmt.Fprintf(w,