mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-08 22:12:21 +00:00
types/logger: fix deadlock in the burst case.
Fixes #365. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -72,7 +72,6 @@ func RateLimitedFn(logf Logf, f float64, b int, m int) Logf {
|
||||
if ok {
|
||||
msgCache.MoveToFront(rl.ele)
|
||||
if rl.lim.Allow() {
|
||||
mu.Lock()
|
||||
rl.msgBlocked = false
|
||||
mu.Unlock()
|
||||
logf(format, args...)
|
||||
|
||||
Reference in New Issue
Block a user