Skip to content
Snippets Groups Projects
Commit 5817c257 authored by David Fifield's avatar David Fifield
Browse files

Fix a local variable reference in BucketRateLimit.when.

ReferenceError: age is not defined	snowflake.js:265:7
        BucketRateLimit.prototype.when	snowflake/proxy/build/snowflake.js:265:7
        ProxyPair.prototype.flush	snowflake/proxy/build/snowflake.js:558:63
        bind/<	snowflake/proxy/build/snowflake.js:10:56
        ProxyPair.prototype.onClientToRelayMessage	snowflake/proxy/build/snowflake.js:495:14
        bind/<	snowflake/proxy/build/snowflake.js:10:56
parent 9545be1c
No related branches found
No related tags found
No related merge requests found
...@@ -174,7 +174,7 @@ class BucketRateLimit ...@@ -174,7 +174,7 @@ class BucketRateLimit
# How many seconds in the future will the limit expire? # How many seconds in the future will the limit expire?
when: -> when: ->
age() @age()
(@amount - @capacity) / (@capacity / @time) (@amount - @capacity) / (@capacity / @time)
isLimited: -> isLimited: ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment