Skip to content

Commit 0735053

Browse files
committed
Make rate's initial size to 0
1 parent fb0211e commit 0735053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rate/rate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func NewLimits(r uint64, p time.Duration) *Limits {
7373
capacity: r,
7474
last: time.Now(),
7575
mu: sync.Mutex{},
76-
size: r,
76+
size: 0,
7777
step: p / time.Duration(gcd),
7878
}
7979
}

0 commit comments

Comments
 (0)