Better handling of RPC errors and RPC conn with the PeerManager (#1047)

This commit is contained in:
divma
2020-05-03 08:17:12 -05:00
committed by GitHub
parent b6c027b9ec
commit b4a1a2e483
16 changed files with 656 additions and 463 deletions

View File

@@ -258,7 +258,7 @@ impl<TSubstream, TSpec: EthSpec> Discovery<TSubstream, TSpec> {
.network_globals
.peers
.read()
.peers_on_subnet(&subnet_id)
.peers_on_subnet(subnet_id)
.count() as u64;
if peers_on_subnet < TARGET_SUBNET_PEERS {