mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2026-04-07 07:43:30 +00:00
enable godot, misspell linters
This commit is contained in:
@@ -2,7 +2,7 @@ package udpproxy
|
||||
|
||||
import "sync"
|
||||
|
||||
// sessionCache tracks connection sessions
|
||||
// sessionCache tracks connection sessions.
|
||||
type sessionCache struct {
|
||||
mu sync.RWMutex
|
||||
data map[string]*session
|
||||
@@ -15,7 +15,7 @@ func newSessionCache() sessionCache {
|
||||
}
|
||||
}
|
||||
|
||||
// read returns the associated session for an addr
|
||||
// read returns the associated session for an addr.
|
||||
func (sc *sessionCache) read(addr string) (*session, bool) {
|
||||
sc.mu.RLock()
|
||||
defer sc.mu.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user