mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
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:
co-authored by
Ian Jungyong Um
Sam Kleinman
parent
def3c2270c
commit
7e2defb24a
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user