Skip to content

Commit

Permalink
limiting threadpool max size to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Jan 15, 2024
1 parent a285f78 commit f831763
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ fn main() {

Opts::Update { tal } => {
// The Update subcommand should "catch up" with the latest roas.csv files based on the most recent data files in the database for each tal
rayon::ThreadPoolBuilder::new()
.num_threads(10)
.build_global()
.unwrap();

let tal_urls: Vec<(String, String)> = match tal {
None => tals_map
Expand Down

0 comments on commit f831763

Please sign in to comment.