From 7e2defb24acc539ddc8f4af90d72df3268000d05 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 10:26:12 -0400 Subject: [PATCH] p2p: fix typo (#8922) (#8927) Fix minor typos in peermanager (cherry picked from commit 1d96faa35a216553fcc8d1be7d85a90450ca5be0) Co-authored-by: Ian Jungyong Um <31336310+code0xff@users.noreply.github.com> Co-authored-by: Sam Kleinman --- internal/p2p/peermanager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index ac2e28225..8230b262e 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -221,11 +221,11 @@ func (o *PeerManagerOptions) Validate() error { return nil } -// isPersistentPeer checks if a peer is in PersistentPeers. It will panic +// isPersistent checks if a peer is in PersistentPeers. It will panic // if called before optimize(). func (o *PeerManagerOptions) isPersistent(id types.NodeID) bool { if o.persistentPeers == nil { - panic("isPersistentPeer() called before optimize()") + panic("isPersistent() called before optimize()") } return o.persistentPeers[id] }