From a504a0adb932732e02df0dc533f80e6d515215ce Mon Sep 17 00:00:00 2001 From: jonas747 Date: Tue, 19 Jul 2016 14:18:49 +0200 Subject: [PATCH] Fix ratelimit mutex with url parameters --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index 337a7f8..2dc5834 100644 --- a/restapi.go +++ b/restapi.go @@ -68,7 +68,7 @@ func (s *Session) request(method, urlStr, contentType string, b []byte) (respons mu, _ = s.rateLimit.url[bu[0]] if mu == nil { mu = new(sync.Mutex) - s.rateLimit.url[urlStr] = mu + s.rateLimit.url[bu[0]] = mu } s.rateLimit.Unlock()