chore(sequencer): fix comments

This commit is contained in:
erhant
2026-08-08 15:15:34 +03:00
parent ae9e3c4960
commit 565ff8632e
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -168,7 +168,6 @@ impl Libp2pNetwork {
.with_swarm_config(|cfg| cfg.with_idle_connection_timeout(Duration::from_secs(60)))
.build();
//
swarm
.behaviour_mut()
.gossipsub
@@ -262,8 +261,6 @@ impl PeerNetworkTrait for Libp2pNetwork {
impl Drop for Libp2pNetwork {
fn drop(&mut self) {
// The drive task breaks its loop on this; the death reminder reads it to
// tell a graceful teardown from the driver dying unexpectedly.
self.shutdown.cancel();
}
}
@@ -387,9 +384,8 @@ impl DriveTask {
} else {
match self.mempool.try_push((TransactionOrigin::Gossip, tx)) {
Ok(()) => {
// mark seen only on succesful pushes, so that if mempool is full we can
// later receive the same tx from gossip and
// try pushing it again
// mark seen only on successful pushes, so that if mempool is full we
// can later receive the same tx from gossip and try pushing it again
self.seen.insert(hash);
}
Err(_) => {
+1 -1
View File
@@ -8,7 +8,7 @@ use common::HashType;
/// recently seen transactions here to avoid re-admitting duplicates that
/// arrive from multiple peers or echo back after a local publish.
///
/// TODO: Counters are exposed for a future metrics surface.
/// TODO: expose counters to `metrics` later.
pub struct SeenCache {
capacity: usize,
order: VecDeque<HashType>,