mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +00:00
Runtime diagnostics for leaked messages in unbounded channels (#12971)
This commit is contained in:
@@ -62,7 +62,7 @@ impl<H, BH> Default for Sender<H, BH> {
|
||||
impl<H: Clone, BH: Clone> Sender<H, BH> {
|
||||
/// Add a new watcher to this sender object.
|
||||
pub fn new_watcher(&mut self, hash: H) -> Watcher<H, BH> {
|
||||
let (tx, receiver) = tracing_unbounded("mpsc_txpool_watcher");
|
||||
let (tx, receiver) = tracing_unbounded("mpsc_txpool_watcher", 100_000);
|
||||
self.receivers.push(tx);
|
||||
Watcher { receiver, hash }
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ where
|
||||
pool: Arc<Pool<Api>>,
|
||||
interval: Duration,
|
||||
) -> (Self, Pin<Box<dyn Future<Output = ()> + Send>>) {
|
||||
let (to_worker, from_queue) = tracing_unbounded("mpsc_revalidation_queue");
|
||||
let (to_worker, from_queue) = tracing_unbounded("mpsc_revalidation_queue", 100_000);
|
||||
|
||||
let worker = RevalidationWorker::new(api.clone(), pool.clone());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user