converted the sessions map to a pointer map, removed un-needed updates and locks
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user