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.
1 parent de0f087 commit 38cf70cCopy full SHA for 38cf70c
crdt.go
@@ -912,10 +912,14 @@ func (store *Datastore) repairDAG() error {
912
cur := nh.node
913
head := nh.head
914
915
- n, delta, err := getter.GetDelta(store.ctx, cur)
+ ctx, cancel := context.WithTimeout(store.ctx, store.opts.DAGSyncerTimeout)
916
+ n, delta, err := getter.GetDelta(ctx, cur)
917
if err != nil {
918
+ cancel()
919
return errors.Wrapf(err, "error getting node for reprocessing %s", cur)
920
}
921
922
+
923
isProcessed, err := store.isProcessed(cur)
924
925
return errors.Wrapf(err, "error checking for reprocessed block %s", cur)
0 commit comments