From c82673e4bc124a8d281dedce51ecda2ea0423246 Mon Sep 17 00:00:00 2001 From: Robert Klotzner Date: Wed, 25 Aug 2021 21:11:28 +0200 Subject: [PATCH] Fix warning. --- node/network/availability-recovery/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node/network/availability-recovery/src/lib.rs b/node/network/availability-recovery/src/lib.rs index 6e9fe2004843..06c5eae966a0 100644 --- a/node/network/availability-recovery/src/lib.rs +++ b/node/network/availability-recovery/src/lib.rs @@ -39,10 +39,12 @@ use polkadot_erasure_coding::{branch_hash, branches, obtain_chunks_v1, recovery_ use polkadot_node_network_protocol::{ request_response::{ self as req_res, incoming, outgoing::RequestError, v1 as request_v1, - IncomingRequestReceiver, OutgoingRequest, Recipient, Requests, CHUNK_REQUEST_TIMEOUT, + IncomingRequestReceiver, OutgoingRequest, Recipient, Requests }, IfDisconnected, UnifiedReputationChange as Rep, }; +#[cfg(not(test))] +use polkadot_node_network_protocol::request_response::CHUNK_REQUEST_TIMEOUT; use polkadot_node_primitives::{AvailableData, ErasureChunk}; use polkadot_node_subsystem_util::request_session_info; use polkadot_primitives::v1::{