Skip to content

Commit

Permalink
Replace new_current_thread() to new_multi_thread().
Browse files Browse the repository at this point in the history
  • Loading branch information
rmqtt committed Oct 14, 2023
1 parent 732e8d3 commit b7946f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmqtt-plugins/rmqtt-http-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl HttpApiPlugin {
}
};

let rt = tokio::runtime::Builder::new_current_thread()
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.worker_threads(workers)
.thread_name("http-api-worker")
Expand Down

0 comments on commit b7946f8

Please sign in to comment.