Skip to content

Commit

Permalink
docs: add back comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Dec 4, 2024
1 parent c3ea133 commit f5f781c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ async fn main() -> Result<()> {
num_blobs, blob_size, namespace_plaintext
);

// Set up Ctrl+C handler
let running = Arc::new(AtomicBool::new(true));
let r = running.clone();
ctrlc::set_handler(move || {
Expand All @@ -75,6 +76,7 @@ async fn main() -> Result<()> {
println!("Batch submitted successfully!");
println!("Result height: {}", result_height);

// Wait a bit for the block to be processed
sleep(Duration::from_secs(2)).await;

println!("Checking height {}...", result_height);
Expand All @@ -87,6 +89,7 @@ async fn main() -> Result<()> {
result_height
);

// Verify the retrieved blobs match what we submitted
let retrieved_data: Vec<Vec<u8>> =
retrieved_blobs.iter().map(|b| b.data.clone()).collect();

Expand Down

0 comments on commit f5f781c

Please sign in to comment.