mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-20 15:11:45 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
cbac125bf8
commit
66793fc84b
10
src/state.rs
10
src/state.rs
@ -180,12 +180,10 @@ async fn handle_request(
|
|||||||
StateAction::DeleteState(process_id) => {
|
StateAction::DeleteState(process_id) => {
|
||||||
let key = process_id.to_hash();
|
let key = process_id.to_hash();
|
||||||
match db.delete(key) {
|
match db.delete(key) {
|
||||||
Ok(_) => {
|
Ok(_) => (
|
||||||
(
|
serde_json::to_vec(&StateResponse::DeleteState).unwrap(),
|
||||||
serde_json::to_vec(&StateResponse::DeleteState).unwrap(),
|
None,
|
||||||
None,
|
),
|
||||||
)
|
|
||||||
}
|
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("delete state error: {:?}", e);
|
println!("delete state error: {:?}", e);
|
||||||
return Err(StateError::RocksDBError {
|
return Err(StateError::RocksDBError {
|
||||||
|
@ -136,7 +136,6 @@ async fn handle_request(
|
|||||||
let drive = format!("/{}/{}", package_id, drive);
|
let drive = format!("/{}/{}", package_id, drive);
|
||||||
let path = PathBuf::from(request.path.clone());
|
let path = PathBuf::from(request.path.clone());
|
||||||
|
|
||||||
|
|
||||||
if km.source.process != *KERNEL_PROCESS_ID {
|
if km.source.process != *KERNEL_PROCESS_ID {
|
||||||
check_caps(
|
check_caps(
|
||||||
our_node.clone(),
|
our_node.clone(),
|
||||||
|
Loading…
Reference in New Issue
Block a user