mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-27 12:59:55 +00:00
Replace request-response incoming requests queue with async-channel (#14199)
This commit is contained in:
1 parent
4766ec5531
commit
db90f3b622
13 files changed
+53
-53
No files matched your search
@@ -23,7 +23,6 @@ pub(crate) mod outgoing_requests_engine;
|
||||
|
||||
pub use incoming_requests_handler::BeefyJustifsRequestHandler;
|
||||
|
||||
use futures::channel::mpsc;
|
||||
use std::time::Duration;
|
||||
|
||||
use codec::{Decode, Encode, Error as CodecError};
|
||||
@@ -54,7 +53,7 @@ pub(crate) fn on_demand_justifications_protocol_config<Hash: AsRef<[u8]>>(
|
||||
) -> (IncomingRequestReceiver, RequestResponseConfig) {
|
||||
let name = justifications_protocol_name(genesis_hash, fork_id);
|
||||
let fallback_names = vec![];
|
||||
let (tx, rx) = mpsc::channel(JUSTIF_CHANNEL_SIZE);
|
||||
let (tx, rx) = async_channel::bounded(JUSTIF_CHANNEL_SIZE);
|
||||
let rx = IncomingRequestReceiver::new(rx);
|
||||
let cfg = RequestResponseConfig {
|
||||
name,
|
||||
|
||||
Reference in new issue
Block a user