Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
x0x
dht
Commits
172e72dc
Commit
172e72dc
authored
Nov 02, 2019
by
Matt Joiner
Browse files
Fix rate.TestLongRunningQPS
parent
a1692319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rate/ratelimit.go
rate/ratelimit.go
+1
-1
No files found.
rate/ratelimit.go
View file @
172e72dc
...
...
@@ -67,7 +67,7 @@ func (rl *Limiter) tokenGenerator(interval time.Duration) {
if
newCur
!=
cur
{
tx
.
Set
(
rl
.
cur
,
newCur
)
}
tx
.
Set
(
rl
.
lastAdd
,
now
)
tx
.
Set
(
rl
.
lastAdd
,
lastAdd
.
Add
(
interval
*
time
.
Duration
(
available
))
)
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment