Skip to content

Commit

Permalink
fix: Correctly use concurrency config option (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley authored Dec 1, 2023
1 parent d8ee669 commit a06bcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async fn main() -> anyhow::Result<()> {
receipts_cache_arc.clone(),
)
})
.buffer_unordered(1usize);
.buffer_unordered(usize::from(opts.concurrency.get()));

while let Some(handle_message) = handlers.next().await {
if let Err(e) = handle_message {
Expand Down

0 comments on commit a06bcec

Please sign in to comment.