Skip to content

Commit ec4a475

Browse files
authored
chore: fix comment for pkg/sync/sync_service.go (#2715)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> --> fix comment for pkg/sync/sync_service.go Signed-off-by: mickychang9 <[email protected]>
1 parent 584a3e5 commit ec4a475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sync/sync_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (syncService *SyncService[H]) setupP2P(ctx context.Context) ([]peer.ID, err
265265
return peerIDs, nil
266266
}
267267

268-
// initFromP2P looks up for the trusted hash or the genesis header/block.
268+
// initFromP2PWithRetry initializes the syncer from P2P with a retry mechanism.
269269
// If trusted hash is available, it fetches the trusted header/block (by hash) from peers.
270270
// Otherwise, it tries to fetch the genesis header/block by height.
271271
func (syncService *SyncService[H]) initFromP2PWithRetry(ctx context.Context, peerIDs []peer.ID) error {

0 commit comments

Comments
 (0)