Skip to content

Commit aaf775c

Browse files
committed
Add Cache::get_hash
1 parent 7583805 commit aaf775c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dht-cache/src/cache.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ impl Cache {
170170
})
171171
.collect()
172172
}
173+
174+
/// Return the current cache hash
175+
pub async fn get_hash(&self) -> u64 {
176+
self.local.get_hash().await
177+
}
173178
}
174179

175180
#[derive(Default, Debug, Clone)]

0 commit comments

Comments
 (0)