Skip to content

Commit

Permalink
Short circuit failure on init error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielSanchezQ committed Sep 3, 2024
1 parent 8831d7f commit 570eb5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nomos-services/data-availability/sampling/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ where
.start_sampling(blob_id, &sampling_subnets)
.await
{
// we can short circuit the failure from beginning
sampler.handle_sampling_error(blob_id).await;
error!("Error sampling for BlobId: {blob_id:?}: {e}");
}
}
Expand Down

0 comments on commit 570eb5e

Please sign in to comment.