Skip to content

Commit b603ae6

Browse files
authored
Merge of #6711
2 parents 1de4983 + d409a82 commit b603ae6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

beacon_node/lighthouse_network/src/rpc/handler.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,9 @@ where
964964
request_info: (Id, RequestType<E>),
965965
error: StreamUpgradeError<RPCError>,
966966
) {
967+
// This dialing is now considered failed
968+
self.dial_negotiated -= 1;
969+
967970
let (id, req) = request_info;
968971

969972
// map the error
@@ -989,9 +992,6 @@ where
989992
StreamUpgradeError::Apply(other) => other,
990993
};
991994

992-
// This dialing is now considered failed
993-
self.dial_negotiated -= 1;
994-
995995
self.outbound_io_error_retries = 0;
996996
self.events_out
997997
.push(HandlerEvent::Err(HandlerErr::Outbound {

0 commit comments

Comments
 (0)