Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
availability-recovery: use IfDisconnected::TryConnect for chunks (#…
Browse files Browse the repository at this point in the history
…6081)

* availability-recovery: use `IfDisconnected::TryConnect` for chunks

* fix tests
  • Loading branch information
ordian authored Oct 18, 2022
1 parent 8e57f2c commit 4e4fb31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node/network/availability-recovery/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl RequestChunksFromValidators {
sender
.send_message(NetworkBridgeTxMessage::SendRequests(
requests,
IfDisconnected::ImmediateError,
IfDisconnected::TryConnect,
))
.await;
}
Expand Down
2 changes: 1 addition & 1 deletion node/network/availability-recovery/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl TestState {
AllMessages::NetworkBridgeTx(
NetworkBridgeTxMessage::SendRequests(
requests,
IfDisconnected::ImmediateError,
_if_disconnected,
)
) => {
for req in requests {
Expand Down

0 comments on commit 4e4fb31

Please sign in to comment.