mirror of
https://github.com/mumble-voip/grumble.git
synced 2026-01-10 20:12:01 -08:00
Fix all golint comment related problems in the pkg packages
This commit is contained in:
parent
65d43576a0
commit
e7589e706e
17 changed files with 47 additions and 18 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
"sync"
|
||||
)
|
||||
|
||||
// A SessionPool is a pool for session IDs.
|
||||
// SessionPool is a pool for session IDs.
|
||||
// IDs are re-used in MRU order, for ease of implementation in Go.
|
||||
type SessionPool struct {
|
||||
mutex sync.Mutex
|
||||
|
|
@ -19,13 +19,13 @@ type SessionPool struct {
|
|||
cur uint32
|
||||
}
|
||||
|
||||
// Create a new SessionPool container.
|
||||
// New creates a new SessionPool container.
|
||||
func New() (pool *SessionPool) {
|
||||
pool = new(SessionPool)
|
||||
return
|
||||
}
|
||||
|
||||
// Enable use-tracking for the SessionPool.
|
||||
// EnableUseTracking will enable use-tracking for the SessionPool.
|
||||
//
|
||||
// When enabled, the SessionPool stores all session IDs
|
||||
// returned by Get() internally. When an ID is reclaimed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue