successkey

This commit is contained in:
jiangyong 2026-05-15 00:13:35 +08:00
parent 45f1b16f6f
commit 5909079c19
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ func (o *WindowsLimitOption) Default() {
if o.Size <= 0 { if o.Size <= 0 {
o.Size = time.Second * 60 o.Size = time.Second * 60
} }
o.failKey = o.Key + ":fail"
o.succKey = o.Key + ":succ"
} }
func (w *WindowsLimit) tidy() { func (w *WindowsLimit) tidy() {
now := time.Now().UnixMilli() now := time.Now().UnixMilli()