refactor: refactoring of code to meet all golangci-lint requirements
This commit is contained in:
@@ -26,13 +26,12 @@ import (
|
||||
|
||||
// RateLimiter defines requests limit properties.
|
||||
type RateLimiter struct {
|
||||
requests int
|
||||
id string
|
||||
window time.Duration
|
||||
clientMap map[string]*Client
|
||||
mu sync.Mutex
|
||||
origins []string
|
||||
//hosts []string
|
||||
requests int
|
||||
id string
|
||||
window time.Duration
|
||||
clientMap map[string]*Client
|
||||
mu sync.Mutex
|
||||
origins []string
|
||||
redisBased bool
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user