juju / ratelimit

Efficient token-bucket-based rate limiter package.
Other
2.79k stars 312 forks source link

Import and use math.Abs() function #8

Closed tpot closed 8 years ago

tpot commented 9 years ago

Hi there. I am seeing an error running ratelimit_test.go due to the abs() function. I'm sorry but I don't know much about Go, but using the math.Abs() function seems to fix the error.

Regards,

Tim.

anthonyfok commented 8 years ago

Hi @rogpeppe, since the same fix was merged as part of pull request #10, this pull request #8 is now obsolete. Please close it at your convenience. Thanks!