Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberb committed Mar 28, 2024
1 parent 29ac074 commit 71924b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/topos-certificate-spammer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ pub async fn run(
debug!("New cert number {b} in batch {batch_number} generated");
batch.push(new_cert);
}

// Dispatch certs in this batch
// Dispatch certs in this batch
for cert in batch {
Expand All @@ -349,6 +349,10 @@ pub async fn run(
// [rand::random::<usize>() % target_nodes.len()];

for connection in &target_node_connections[&cert.source_subnet_id] {
debug!(
"Sending certificate {cert:?} to target node {}",
connection.address
);
dispatch(cert.clone(), connection)
.instrument(Span::current())
.with_current_context()
Expand Down

0 comments on commit 71924b1

Please sign in to comment.