Skip to content

Commit

Permalink
Add resource deletion to tracing info
Browse files Browse the repository at this point in the history
  • Loading branch information
Polleps committed Oct 16, 2023
1 parent 574352e commit 0f909b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/src/db/query_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
//! It relies on lexicographic ordering of keys, which Sled utilizes using `scan_prefix` queries.
use crate::{
agents::ForAgent,
atoms::IndexAtom,
errors::AtomicResult,
storelike::{Query, QueryResult},
values::SortableValue,
Atom, Db, Resource, Storelike, Value,
agents::ForAgent, atoms::IndexAtom, errors::AtomicResult, storelike::Query,
values::SortableValue, Atom, Db, Resource, Storelike, Value,
};
use serde::{Deserialize, Serialize};

Expand Down
1 change: 1 addition & 0 deletions lib/src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ impl Resource {

/// Removes / deletes the resource from the store by performing a Commit.
/// Recursively deletes the resource's children.
#[tracing::instrument(skip(store))]
pub fn destroy(
&mut self,
store: &impl Storelike,
Expand Down

0 comments on commit 0f909b8

Please sign in to comment.