Linting.
This commit is contained in:
parent
277bbbebee
commit
8c52d97c1e
2 changed files with 4 additions and 1 deletions
|
@ -67,6 +67,8 @@ func (r *RateLimiter) GetBucket(key string) *Bucket {
|
||||||
r.buckets[key] = b
|
r.buckets[key] = b
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetWaitTime returns the duration you should wait for a Bucket
|
||||||
func (r *RateLimiter) GetWaitTime(b *Bucket, minRemaining int) time.Duration {
|
func (r *RateLimiter) GetWaitTime(b *Bucket, minRemaining int) time.Duration {
|
||||||
// If we ran out of calls and the reset time is still ahead of us
|
// If we ran out of calls and the reset time is still ahead of us
|
||||||
// then we need to take it easy and relax a little
|
// then we need to take it easy and relax a little
|
||||||
|
|
|
@ -313,9 +313,10 @@ type Presence struct {
|
||||||
Since *int `json:"since"`
|
Since *int `json:"since"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// A game type
|
// GameType is the type of "game" (see GameType* consts) in the Game struct
|
||||||
type GameType int
|
type GameType int
|
||||||
|
|
||||||
|
// Valid GameType values
|
||||||
const (
|
const (
|
||||||
GameTypeGame GameType = iota
|
GameTypeGame GameType = iota
|
||||||
GameTypeStreaming
|
GameTypeStreaming
|
||||||
|
|
Loading…
Reference in a new issue