forked from Silverfish/proton-bridge
fix(GODT-2327): Don't retry with abortable context because it's canceled
This commit is contained in:
@ -196,15 +196,7 @@ func New(
|
||||
|
||||
if err := user.doSync(ctx); err != nil {
|
||||
user.log.WithError(err).Error("Failed to sync, will retry later")
|
||||
|
||||
go func() {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
user.log.WithError(err).Warn("Aborting sync retry")
|
||||
case <-time.After(SyncRetryCooldown):
|
||||
user.goSync()
|
||||
}
|
||||
}()
|
||||
time.AfterFunc(SyncRetryCooldown, user.goSync)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user