Skip to content

Commit

Permalink
bug: conditionally disable enable_io non-unix based systems
Browse files Browse the repository at this point in the history
  • Loading branch information
hntd187 committed Sep 13, 2024
1 parent a22e2a6 commit 73107a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ fn io_rt(config: Option<&RuntimeConfig>) -> &Runtime {
} else {
RuntimeBuilder::new_current_thread()
};
let builder = builder.worker_threads(config.worker_threads);
let builder = if config.enable_io && config.enable_time {
let mut builder = builder.worker_threads(config.worker_threads);
let mut builder = if config.enable_io && config.enable_time {
builder.enable_all()
} else if !config.enable_io && config.enable_time {
builder.enable_time()
Expand Down

0 comments on commit 73107a7

Please sign in to comment.