p2p: fix typo (#8922) (#8927)

Fix minor typos in peermanager

(cherry picked from commit 1d96faa35a)

Co-authored-by: Ian Jungyong Um <31336310+code0xff@users.noreply.github.com>
Co-authored-by: Sam Kleinman <garen@tychoish.com>
This commit is contained in:
mergify[bot]
2022-07-01 10:26:12 -04:00
committed by GitHub
co-authored by Ian Jungyong Um Sam Kleinman
parent def3c2270c
commit 7e2defb24a
+2 -2
View File
@@ -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]
}