diff options
Diffstat (limited to 'runtime/ops/worker_host.rs')
-rw-r--r-- | runtime/ops/worker_host.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/runtime/ops/worker_host.rs b/runtime/ops/worker_host.rs index bd1f1e3f5..f8831d4e9 100644 --- a/runtime/ops/worker_host.rs +++ b/runtime/ops/worker_host.rs @@ -258,16 +258,12 @@ fn op_create_worker( } #[op] -fn op_host_terminate_worker( - state: &mut OpState, - id: WorkerId, -) -> Result<(), AnyError> { +fn op_host_terminate_worker(state: &mut OpState, id: WorkerId) { if let Some(worker_thread) = state.borrow_mut::<WorkersTable>().remove(&id) { worker_thread.terminate(); } else { debug!("tried to terminate non-existent worker {}", id); } - Ok(()) } enum WorkerChannel { |