feat(http): calculate updates' and uuids' dbs size

This commit is contained in:
Alexey Shekhirin
2021-04-09 15:41:24 +03:00
parent ae1655586c
commit adfdb99abc
17 changed files with 121 additions and 25 deletions

View File

@ -75,4 +75,13 @@ impl UuidResolverHandle for UuidResolverHandleImpl {
.await
.expect("Uuid resolver actor has been killed")?)
}
async fn get_size(&self) -> Result<u64> {
let (ret, receiver) = oneshot::channel();
let msg = UuidResolveMsg::GetSize { ret };
let _ = self.sender.send(msg).await;
Ok(receiver
.await
.expect("Uuid resolver actor has been killed")?)
}
}