Skip to content

Commit

Permalink
signalmeow/backup: remove incorrect comment
Browse files Browse the repository at this point in the history
The early returns are caused by duplicate calls to WaitForTransfer
  • Loading branch information
tulir committed Jan 19, 2025
1 parent 1e622b7 commit dceab3c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/signalmeow/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,6 @@ func (cli *Client) WaitForTransfer(ctx context.Context) (*TransferArchiveMetadat
}
reqDuration := time.Since(reqStart)
if reqDuration < reqTimeout-10*time.Second {
// There seems to be a bug or feature when the transfer fails that causes the server to
// immediately return 204 until the user clicks "Continue" on their phone, so sleep for
// a bit to avoid sending requests too often.
time.Sleep(15 * time.Second)
}
}
Expand Down

0 comments on commit dceab3c

Please sign in to comment.