From befaec4ceec767814fed9235ac93973cef943311 Mon Sep 17 00:00:00 2001 From: Andronik <write@reusable.software> Date: Tue, 18 Oct 2022 15:15:49 +0200 Subject: [PATCH] availability-recovery: use `IfDisconnected::TryConnect` for chunks (#6081) * availability-recovery: use `IfDisconnected::TryConnect` for chunks * fix tests --- polkadot/node/network/availability-recovery/src/lib.rs | 2 +- polkadot/node/network/availability-recovery/src/tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/node/network/availability-recovery/src/lib.rs b/polkadot/node/network/availability-recovery/src/lib.rs index f2f92cc5449..a07f4e0baa5 100644 --- a/polkadot/node/network/availability-recovery/src/lib.rs +++ b/polkadot/node/network/availability-recovery/src/lib.rs @@ -362,7 +362,7 @@ impl RequestChunksFromValidators { sender .send_message(NetworkBridgeTxMessage::SendRequests( requests, - IfDisconnected::ImmediateError, + IfDisconnected::TryConnect, )) .await; } diff --git a/polkadot/node/network/availability-recovery/src/tests.rs b/polkadot/node/network/availability-recovery/src/tests.rs index 8a5191e70b2..3e898088c7f 100644 --- a/polkadot/node/network/availability-recovery/src/tests.rs +++ b/polkadot/node/network/availability-recovery/src/tests.rs @@ -311,7 +311,7 @@ impl TestState { AllMessages::NetworkBridgeTx( NetworkBridgeTxMessage::SendRequests( requests, - IfDisconnected::ImmediateError, + _if_disconnected, ) ) => { for req in requests { -- GitLab