Skip to content

Commit

Permalink
Use tokio::runtime::Builder::new_current_thread
Browse files Browse the repository at this point in the history
  • Loading branch information
vintitres committed Jun 3, 2024
1 parent 517b95c commit 500a31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-aoc/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn execute_input(args: &Input) -> Result<(), Box<dyn Error>> {
.year
.expect("Need to specify a year to run cargo-aoc input --all");
{
let rt = tokio::runtime::Runtime::new().unwrap();
let rt = tokio::runtime::Builder::new_current_thread().build().unwrap();
rt.block_on(async {
let client = reqwest::Client::builder()
.default_headers(headers)
Expand Down

0 comments on commit 500a31f

Please sign in to comment.