From 2e3787252367cf99406df278eb02dccd97a97fe4 Mon Sep 17 00:00:00 2001 From: Simon Paitrault Date: Wed, 13 Mar 2024 11:25:35 +0100 Subject: [PATCH] docs: adding doc to methods Signed-off-by: Simon Paitrault --- crates/topos-tce-storage/src/fullnode/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/topos-tce-storage/src/fullnode/mod.rs b/crates/topos-tce-storage/src/fullnode/mod.rs index cfa14f448..b50900d4e 100644 --- a/crates/topos-tce-storage/src/fullnode/mod.rs +++ b/crates/topos-tce-storage/src/fullnode/mod.rs @@ -84,6 +84,7 @@ impl FullNodeStore { })) } + /// Await for a [`LockGuards`] for the given certificate id pub(crate) async fn get_certificate_lock_guard( &self, certificate_id: CertificateId, @@ -95,6 +96,7 @@ impl FullNodeStore { .await } + /// Await for a [`LockGuards`] for the given subnet id pub(crate) async fn get_subnet_lock_guard(&self, subnet_id: SubnetId) -> OwnedMutexGuard<()> { self.subnet_lock_guards .get_lock(subnet_id)