The current implementation has a method GetRemainingLimit, which is very useful. However it always returned 1000, regardless of the actual remaining rate limit.
Changes in the PR:
Fix extracting the remaining rate limit from response headers in the updateRateLimit function.
Use tabs instead of spaces for indentation, which is the default for Go.
The current implementation has a method
GetRemainingLimit
, which is very useful. However it always returned 1000, regardless of the actual remaining rate limit.Changes in the PR:
updateRateLimit
function.