merge rooms/short Data w/ Service; optimize queries
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0e8ae1e13e
commit
c569881b08
18 changed files with 257 additions and 262 deletions
|
@ -23,9 +23,11 @@ impl Data {
|
|||
}
|
||||
|
||||
pub(super) async fn get_statediff(&self, shortstatehash: u64) -> Result<StateDiff> {
|
||||
const BUFSIZE: usize = size_of::<u64>();
|
||||
|
||||
let value = self
|
||||
.shortstatehash_statediff
|
||||
.qry(&shortstatehash)
|
||||
.aqry::<BUFSIZE, _>(&shortstatehash)
|
||||
.await
|
||||
.map_err(|e| err!(Database("Failed to find StateDiff from short {shortstatehash:?}: {e}")))?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue