Skip to content

Commit

Permalink
fix: switch to address
Browse files Browse the repository at this point in the history
  • Loading branch information
andygeiss committed Jan 5, 2025
1 parent 257285d commit e52f4dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/server_sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ func (a *ServerSessions) Update(info ServerSession) (sessionID string) {
}

// Get returns the session for the given sessionID.
func (a *ServerSessions) Get(sessionID string) (ServerSession, bool) {
func (a *ServerSessions) Get(sessionID string) (*ServerSession, bool) {
a.mutex.RLock()
defer a.mutex.RUnlock()
info, ok := a.sessions[sessionID]
return info, ok
return &info, ok
}

0 comments on commit e52f4dd

Please sign in to comment.