statesync: make fetching chunks more robust (#6587)

This commit is contained in:
Callum Waters
2021-06-21 10:14:15 -04:00
committed by GitHub
parent 144af9a81a
commit 6e238b5b9d
7 changed files with 81 additions and 67 deletions
+1 -1
View File
@@ -1055,7 +1055,7 @@ func startStateSync(ssR *statesync.Reactor, bcR fastSyncReactor, conR *cs.Reacto
}
go func() {
state, err := ssR.Sync(stateProvider, config.DiscoveryTime)
state, err := ssR.Sync(context.TODO(), stateProvider, config.DiscoveryTime)
if err != nil {
ssR.Logger.Error("state sync failed", "err", err)
return