gotd/tgerr: reduce default flood wait max duration

This commit is contained in:
Tulir Asokan
2026-04-08 00:41:12 +03:00
parent cc32d48fea
commit 60e3cf9c01
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func FloodWaitWithMaxDuration(d time.Duration) FloodWaitOption {
func FloodWait(ctx context.Context, err error, opts ...FloodWaitOption) (bool, error) {
opt := &floodWaitOptions{
clock: clock.System,
maxDuration: 1 * time.Hour,
maxDuration: 5 * time.Minute,
}
for _, o := range opts {
o.apply(opt)