Skip to content

Commit e1821db

Browse files
authored
chore: misc heartbeat (#2302)
1 parent a3da373 commit e1821db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: crates/provider/src/heart.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ pub enum WatchTxError {
349349
Timeout,
350350
}
351351

352+
/// The type sent by the [`HeartbeatHandle`] to the [`Heartbeat`] background task.
352353
#[doc(alias = "TransactionWatcher")]
353354
struct TxWatcher {
354355
config: PendingTransactionConfig,
@@ -439,7 +440,6 @@ impl HeartbeatHandle {
439440
}
440441
}
441442

442-
// TODO: Parameterize with `Network`
443443
/// A heartbeat task that receives blocks and watches for transactions.
444444
pub(crate) struct Heartbeat<N, S> {
445445
/// The stream of incoming blocks to watch.
@@ -650,7 +650,7 @@ impl<N: Network, S: Stream<Item = N::BlockResponse> + Unpin + Send + 'static> He
650650

651651
impl<N: Network, S: Stream<Item = N::BlockResponse> + Unpin + 'static> Heartbeat<N, S> {
652652
fn consume(self) -> (impl Future<Output = ()>, HeartbeatHandle) {
653-
let (ix_tx, ixns) = mpsc::channel(16);
653+
let (ix_tx, ixns) = mpsc::channel(64);
654654
(self.into_future(ixns), HeartbeatHandle { tx: ix_tx })
655655
}
656656

0 commit comments

Comments
 (0)