chatsync: merge post-login and takeout syncs and refactor everything

This commit is contained in:
Tulir Asokan
2026-03-19 01:36:30 +02:00
parent b1b5745033
commit bfe5999951
10 changed files with 407 additions and 345 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func FloodWait(ctx context.Context, err error, opts ...FloodWaitOption) (bool, e
if d, ok := AsFloodWait(err); ok && d < opt.maxDuration {
timer := opt.clock.Timer(d + 1*time.Second)
defer clock.StopTimer(timer)
zerolog.Ctx(ctx).Debug().Dur("duration", d).Msg("Waiting on flood wait")
zerolog.Ctx(ctx).Warn().Dur("duration", d).Msg("Waiting on flood wait")
select {
case <-timer.C():
return true, err