mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 13:24:44 +00:00
Merge remote-tracking branch 'origin/release-v7.0.0' into unstable
This commit is contained in:
@@ -201,7 +201,7 @@ impl<E: EthSpec> NetworkBehaviour for PeerManager<E> {
|
||||
.peers
|
||||
.read()
|
||||
.peer_info(&peer_id)
|
||||
.map_or(true, |peer| !peer.has_future_duty())
|
||||
.is_none_or(|peer| !peer.has_future_duty())
|
||||
{
|
||||
return Err(ConnectionDenied::new(
|
||||
"Connection to peer rejected: too many connections",
|
||||
@@ -240,7 +240,7 @@ impl<E: EthSpec> NetworkBehaviour for PeerManager<E> {
|
||||
.peers
|
||||
.read()
|
||||
.peer_info(&peer_id)
|
||||
.map_or(true, |peer| !peer.has_future_duty())
|
||||
.is_none_or(|peer| !peer.has_future_duty())
|
||||
{
|
||||
return Err(ConnectionDenied::new(
|
||||
"Connection to peer rejected: too many connections",
|
||||
|
||||
Reference in New Issue
Block a user