mirror of https://github.com/poanetwork/gecko.git
reduce diff
This commit is contained in:
parent
b7305f78b6
commit
b4f3bb6719
|
@ -187,8 +187,8 @@ func (c *connections) getID(peer salticidae.PeerID) (ids.ShortID, bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *connections) remove(peer salticidae.PeerID, id ids.ShortID) {
|
func (c *connections) remove(peer salticidae.PeerID, id ids.ShortID) {
|
||||||
c.removeID(id)
|
|
||||||
c.removePeerID(peer)
|
c.removePeerID(peer)
|
||||||
|
c.removeID(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *connections) removePeerID(peer salticidae.PeerID) {
|
func (c *connections) removePeerID(peer salticidae.PeerID) {
|
||||||
|
|
Loading…
Reference in New Issue