mirror of
https://github.com/samvallad33/vestige.git
synced 2026-06-08 20:25:16 +02:00
Fix clippy release event match
This commit is contained in:
parent
3c913f9942
commit
c4e90f7f4a
1 changed files with 12 additions and 13 deletions
|
|
@ -1210,22 +1210,21 @@ impl McpServer {
|
|||
.unwrap_or("")
|
||||
.to_string();
|
||||
match action {
|
||||
"delete" | "purge" => {
|
||||
"delete" | "purge"
|
||||
if result
|
||||
.get("success")
|
||||
.and_then(|value| value.as_bool())
|
||||
.unwrap_or(false)
|
||||
{
|
||||
let node_id = result
|
||||
.get("nodeId")
|
||||
.and_then(|value| value.as_str())
|
||||
.unwrap_or(&id)
|
||||
.to_string();
|
||||
self.emit(VestigeEvent::MemoryDeleted {
|
||||
id: node_id,
|
||||
timestamp: now,
|
||||
});
|
||||
}
|
||||
.unwrap_or(false) =>
|
||||
{
|
||||
let node_id = result
|
||||
.get("nodeId")
|
||||
.and_then(|value| value.as_str())
|
||||
.unwrap_or(&id)
|
||||
.to_string();
|
||||
self.emit(VestigeEvent::MemoryDeleted {
|
||||
id: node_id,
|
||||
timestamp: now,
|
||||
});
|
||||
}
|
||||
"promote" => {
|
||||
let retention = result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue