mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-01-12 07:49:49 -05:00
cleanup
This commit is contained in:
parent
d7783e27dd
commit
88d13d36c9
@ -1461,7 +1461,7 @@ impl VeilidAPI {
|
|||||||
dc.opened_record_contexts.insert(*record.key(), rc);
|
dc.opened_record_contexts.insert(*record.key(), rc);
|
||||||
|
|
||||||
debug!("DHT Record Created:\n{:#?}", record);
|
debug!("DHT Record Created:\n{:#?}", record);
|
||||||
Ok(format!("Created: {:?}", record))
|
Ok(format!("Created: {:?} : {:?}", record.key(), record))
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn debug_record_open(&self, args: Vec<String>) -> VeilidAPIResult<String> {
|
async fn debug_record_open(&self, args: Vec<String>) -> VeilidAPIResult<String> {
|
||||||
@ -1528,9 +1528,9 @@ impl VeilidAPI {
|
|||||||
Ok(v) => v,
|
Ok(v) => v,
|
||||||
};
|
};
|
||||||
let out = if let Some(value) = value {
|
let out = if let Some(value) = value {
|
||||||
format!("{:?}", value)
|
format!("Newer value found: {:?}", value)
|
||||||
} else {
|
} else {
|
||||||
"No value data returned".to_owned()
|
"Success".to_owned()
|
||||||
};
|
};
|
||||||
Ok(out)
|
Ok(out)
|
||||||
}
|
}
|
||||||
@ -1696,9 +1696,9 @@ impl VeilidAPI {
|
|||||||
} else if command == "info" {
|
} else if command == "info" {
|
||||||
self.debug_record_info(args).await
|
self.debug_record_info(args).await
|
||||||
} else if command == "watch" {
|
} else if command == "watch" {
|
||||||
self.debug_record_info(args).await
|
self.debug_record_watch(args).await
|
||||||
} else if command == "cancel" {
|
} else if command == "cancel" {
|
||||||
self.debug_record_info(args).await
|
self.debug_record_cancel(args).await
|
||||||
} else {
|
} else {
|
||||||
Ok(">>> Unknown command\n".to_owned())
|
Ok(">>> Unknown command\n".to_owned())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user