From c69e9151d8af4f9d8477c3c84140ec21470a8b55 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Wed, 7 Aug 2024 19:17:04 +0000 Subject: [PATCH] netsync: Correct function name in comments These methods are called serially from the eventHandler method, not syncHandler. --- internal/netsync/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/netsync/manager.go b/internal/netsync/manager.go index c9bfedbfc..9a0412e9e 100644 --- a/internal/netsync/manager.go +++ b/internal/netsync/manager.go @@ -638,7 +638,7 @@ func (m *SyncManager) onInitialChainSyncDone() { // handlePeerConnectedMsg deals with new peers that have signalled they may // be considered as a sync peer (they have already successfully negotiated). It -// also starts syncing if needed. It is invoked from the syncHandler goroutine. +// also starts syncing if needed. It is invoked from the eventHandler goroutine. func (m *SyncManager) handlePeerConnectedMsg(ctx context.Context, peer *Peer) { select { case <-ctx.Done(): @@ -665,7 +665,7 @@ func (m *SyncManager) handlePeerConnectedMsg(ctx context.Context, peer *Peer) { // handlePeerDisconnectedMsg deals with peers that have signalled they are done. // It removes the peer as a candidate for syncing and in the case where it was // the current sync peer, attempts to select a new best peer to sync from. It -// is invoked from the syncHandler goroutine. +// is invoked from the eventHandler goroutine. func (m *SyncManager) handlePeerDisconnectedMsg(peer *Peer) { // Remove the peer from the list of candidate peers. delete(m.peers, peer)