diff --git a/src/state.rs b/src/state.rs index 76afc75e..c8897045 100644 --- a/src/state.rs +++ b/src/state.rs @@ -180,12 +180,10 @@ async fn handle_request( StateAction::DeleteState(process_id) => { let key = process_id.to_hash(); match db.delete(key) { - Ok(_) => { - ( - serde_json::to_vec(&StateResponse::DeleteState).unwrap(), - None, - ) - } + Ok(_) => ( + serde_json::to_vec(&StateResponse::DeleteState).unwrap(), + None, + ), Err(e) => { println!("delete state error: {:?}", e); return Err(StateError::RocksDBError { @@ -510,7 +508,7 @@ async fn bootstrap( continue; } } - + if let Some(cap) = capability { if let Some(process) = process_map.get_mut(&to_process.unwrap()) { process.capabilities.insert(cap); diff --git a/src/vfs.rs b/src/vfs.rs index 347d2492..2041018b 100644 --- a/src/vfs.rs +++ b/src/vfs.rs @@ -136,7 +136,6 @@ async fn handle_request( let drive = format!("/{}/{}", package_id, drive); let path = PathBuf::from(request.path.clone()); - if km.source.process != *KERNEL_PROCESS_ID { check_caps( our_node.clone(),