Skip to content

Commit

Permalink
Unsaturate dial negotiation queue (sigp#6711)
Browse files Browse the repository at this point in the history
* Unsaturate dial-negotiation count
  • Loading branch information
AgeManning authored Dec 17, 2024
1 parent 1de4983 commit 1315c94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beacon_node/lighthouse_network/src/rpc/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,9 @@ where
request_info: (Id, RequestType<E>),
error: StreamUpgradeError<RPCError>,
) {
// This dialing is now considered failed
self.dial_negotiated -= 1;

let (id, req) = request_info;

// map the error
Expand All @@ -989,9 +992,6 @@ where
StreamUpgradeError::Apply(other) => other,
};

// This dialing is now considered failed
self.dial_negotiated -= 1;

self.outbound_io_error_retries = 0;
self.events_out
.push(HandlerEvent::Err(HandlerErr::Outbound {
Expand Down

0 comments on commit 1315c94

Please sign in to comment.