Skip to content

Commit b8d9b39

Browse files
committed
Change name of returned error
1 parent 15daebf commit b8d9b39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/node.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ func (n *Node) Dispatch() error {
711711
}
712712

713713
// Start P2P connections
714-
err := n.Net.Dispatch()
714+
retErr := n.Net.Dispatch()
715715

716716
// If the P2P server isn't running, shut down the node.
717717
// If node is already shutting down, this does not tigger shutdown again,
@@ -737,7 +737,7 @@ func (n *Node) Dispatch() error {
737737
)
738738
}
739739

740-
return err
740+
return retErr
741741
}
742742

743743
/*

0 commit comments

Comments
 (0)