Commit 172e72dc authored by Matt Joiner's avatar Matt Joiner
Browse files

Fix rate.TestLongRunningQPS

parent a1692319
......@@ -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)))
})
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment