Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 8e94718

Browse files
Fix wrap order in block issuer
1 parent 80eb3f1 commit 8e94718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/testsuite/mock/blockissuer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ func (i *BlockIssuer) getReferencesWithRetry(ctx context.Context, parentsCount i
515515
case <-timeout.C:
516516
return nil, ierrors.New("timeout while trying to select tips and determine references")
517517
case <-ctx.Done():
518-
return nil, ierrors.Errorf("context canceled whilst trying to select tips and determine references: %w", ctx.Err())
518+
return nil, ierrors.Wrap(ctx.Err(), "context canceled whilst trying to select tips and determine references")
519519
}
520520
}
521521
}

0 commit comments

Comments
 (0)