fix dead loop in direct connecto if disable-p2p is enabled in dst (#1206)

This commit is contained in:
Sijie.Sun
2025-08-08 22:30:39 +08:00
committed by GitHub
parent 6d14e9e441
commit efa17a7c10
5 changed files with 25 additions and 17 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ impl BackOff {
pub fn handle_rpc_result<T>(
ret: Result<T, rpc_types::error::Error>,
dst_peer_id: PeerId,
blacklist: Arc<timedmap::TimedMap<PeerId, ()>>,
blacklist: &timedmap::TimedMap<PeerId, ()>,
) -> Result<T, rpc_types::error::Error> {
match ret {
Ok(ret) => Ok(ret),