We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 325bd1a + 38cf70c commit e0eb62dCopy full SHA for e0eb62d
crdt.go
@@ -923,10 +923,14 @@ func (store *Datastore) repairDAG() error {
923
cur := nh.node
924
head := nh.head
925
926
- n, delta, err := getter.GetDelta(store.ctx, cur)
+ ctx, cancel := context.WithTimeout(store.ctx, store.opts.DAGSyncerTimeout)
927
+ n, delta, err := getter.GetDelta(ctx, cur)
928
if err != nil {
929
+ cancel()
930
return errors.Wrapf(err, "error getting node for reprocessing %s", cur)
931
}
932
933
+
934
isProcessed, err := store.isProcessed(cur)
935
936
return errors.Wrapf(err, "error checking for reprocessed block %s", cur)
0 commit comments