Skip to content

Commit

Permalink
No need for arc
Browse files Browse the repository at this point in the history
  • Loading branch information
ligustah committed Apr 26, 2024
1 parent bbd5467 commit 8cc3e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl Controller {
tracing::info!(histogram.sync_request_processed = 1);
}
P2PEvent::SyncResponse { premints } => {
let sem = Arc::new(Semaphore::new(10));
let sem = Semaphore::new(10);
futures_util::future::join_all(premints.into_iter().map(|p| async {
let permit = sem.acquire().await.unwrap();
let _ = self.validate_and_insert(p).await;
Expand Down

0 comments on commit 8cc3e0d

Please sign in to comment.