This commit is contained in:
Anna Khanova
2024-04-10 11:51:10 +02:00
parent 2876eaba61
commit de4449281d

View File

@@ -543,7 +543,10 @@ impl ApiLocks {
})
}
pub async fn garbage_collect_worker(&self) -> anyhow::Result<Infallible> {
pub async fn garbage_collect_worker(&self) {
if self.permits == 0 {
return;
}
let mut interval =
tokio::time::interval(self.epoch / (self.node_locks.shards().len()) as u32);
loop {