We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b309e commit cbfa292Copy full SHA for cbfa292
request/pending.go
@@ -240,10 +240,10 @@ func (ps *PendingStore) checkSecondStrike(now time.Time) bool {
240
}
241
242
func (ps *PendingStore) calcSecondStrike() time.Duration {
243
- // now := ps.now()
244
- // if now.Sub(ps.StartTime) <= 20 * ps.SecondStrikeThreshold {
245
- // return 5 * ps.SecondStrikeThreshold
246
- // }
+ now := ps.now()
+ if now.Sub(ps.StartTime) <= 5*ps.SecondStrikeThreshold {
+ return 3 * ps.SecondStrikeThreshold
+ }
247
return ps.SecondStrikeThreshold
248
249
0 commit comments