Fix all golint comment related problems in the pkg packages

This commit is contained in:
Ola Bini 2019-12-21 17:19:26 +00:00
parent 65d43576a0
commit e7589e706e
No known key found for this signature in database
GPG key ID: 6786A150F6A2B28F
17 changed files with 47 additions and 18 deletions

View file

@ -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,