Skip to content

Commit

Permalink
Merge branch 'main' into fix-integration-dagster
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyler authored Sep 17, 2024
2 parents 531a824 + 73107a7 commit 33d5d10
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions crates/core/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,20 @@ 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_io()
} else if !config.enable_io && config.enable_time {
builder.enable_time()
} else {
builder
};
#[cfg(unix)]
{
if config.enable_io && !config.enable_time {
builder = builder.enable_io();
}
}
builder
.thread_name(
config
Expand Down

0 comments on commit 33d5d10

Please sign in to comment.