Skip to content

Commit cbfa292

Browse files
committed
longer second strike at start
Signed-off-by: Hagar Meir <[email protected]>
1 parent c4b309e commit cbfa292

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

request/pending.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ func (ps *PendingStore) checkSecondStrike(now time.Time) bool {
240240
}
241241

242242
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-
// }
243+
now := ps.now()
244+
if now.Sub(ps.StartTime) <= 5*ps.SecondStrikeThreshold {
245+
return 3 * ps.SecondStrikeThreshold
246+
}
247247
return ps.SecondStrikeThreshold
248248
}
249249

0 commit comments

Comments
 (0)