Skip to content

Commit 751b99a

Browse files
committed
fix
1 parent 550e42a commit 751b99a

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/config/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ pub use paths::{
2929
get_python_wasm_path, get_state_dir, get_state_dir_for_base, get_task_dir, get_wasm_cache_dir,
3030
resolve_path,
3131
};
32+
#[cfg(feature = "python")]
3233
pub use python_config::PythonConfig;

src/server/initializer.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ fn initialize_coordinator(_config: &GlobalConfig) -> Result<()> {
144144
}
145145

146146
pub fn register_components() -> ComponentRegistry {
147-
let mut builder = ComponentRegistryBuilder::new()
148-
.register("WasmCache", initialize_wasm_cache)
149-
.register("TaskManager", initialize_task_manager);
150-
151-
#[cfg(feature = "python")]
152-
{
153-
builder = builder.register("PythonService", initialize_python_service);
154-
}
147+
let builder = {
148+
let b = ComponentRegistryBuilder::new()
149+
.register("WasmCache", initialize_wasm_cache)
150+
.register("TaskManager", initialize_task_manager);
151+
#[cfg(feature = "python")]
152+
let b = b.register("PythonService", initialize_python_service);
153+
b
154+
};
155155

156156
builder
157157
.register("Coordinator", initialize_coordinator)

0 commit comments

Comments
 (0)