Skip to content

Commit

Permalink
Delegate to rs-matter-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Dec 2, 2024
1 parent 66c7055 commit 04f30d4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn new_default<'a, T, N, Q>(
where
T: NvsPartitionId,
N: Network<Embedding = KvBlobBuf<Q>>,
Q: Embedding + 'a,
Q: Embedding + 'static,
{
new(nvs, "esp-idf-matter", stack)
}
Expand All @@ -45,13 +45,11 @@ pub fn new<'a, T, N, Q>(
where
T: NvsPartitionId,
N: Network<Embedding = KvBlobBuf<Q>>,
Q: Embedding + 'a,
Q: Embedding + 'static,
{
Ok(EspMatterPersist::wrap(
Ok(rs_matter_stack::persist::new_kv(
EspKvBlobStore::new(nvs, namespace)?,
stack.network().embedding().buf(),
stack.matter(),
stack.network().persist_context(),
stack,
))
}

Expand Down

0 comments on commit 04f30d4

Please sign in to comment.