Fix ratelimit mutex with url parameters
This commit is contained in:
parent
ea72e85416
commit
a504a0adb9
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ func (s *Session) request(method, urlStr, contentType string, b []byte) (respons
|
||||||
mu, _ = s.rateLimit.url[bu[0]]
|
mu, _ = s.rateLimit.url[bu[0]]
|
||||||
if mu == nil {
|
if mu == nil {
|
||||||
mu = new(sync.Mutex)
|
mu = new(sync.Mutex)
|
||||||
s.rateLimit.url[urlStr] = mu
|
s.rateLimit.url[bu[0]] = mu
|
||||||
}
|
}
|
||||||
s.rateLimit.Unlock()
|
s.rateLimit.Unlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue