We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67adb9c commit 2ae65d2Copy full SHA for 2ae65d2
decor/eta.go
@@ -164,7 +164,10 @@ func MaxTolerateTimeNormalizer(maxTolerate time.Duration) TimeNormalizer {
164
}
165
normalized -= time.Since(lastCall)
166
lastCall = time.Now()
167
- return normalized
+ if normalized > 0 {
168
+ return normalized
169
+ }
170
+ return remaining
171
})
172
173
@@ -183,7 +186,10 @@ func FixedIntervalTimeNormalizer(updInterval int) TimeNormalizer {
183
186
count--
184
187
185
188
189
190
191
192
193
194
195
0 commit comments