Skip to content

Commit

Permalink
retry synchronization more often with more clients
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 23, 2023
1 parent e02f44d commit 3960b66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion indexer/synchronizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ func (sync *synchronizerState) runSync() {
// synchronize next epoch
syncEpoch := sync.currentEpoch

lastRetry := retryCount >= 20
retryLimit := len(sync.indexer.GetClients())
if retryLimit < 30 {
retryLimit = 30
}
lastRetry := retryCount >= retryLimit
done, usedClient, err := sync.syncEpoch(syncEpoch, retryCount, lastRetry, skipClients)
if done || lastRetry {
if err != nil {
Expand Down

0 comments on commit 3960b66

Please sign in to comment.