signalmeow/backup: remove incorrect comment

The early returns are caused by duplicate calls to WaitForTransfer
This commit is contained in:
Tulir Asokan 2025-01-19 19:18:44 +02:00
parent 1e622b7bc6
commit dceab3c8b3

View file

@ -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)
}
}