global: snapshot

This commit is contained in:
nym21
2026-01-20 15:04:00 +01:00
parent 486871379c
commit 9613fce919
53 changed files with 1811 additions and 4081 deletions

View File

@@ -160,6 +160,7 @@ impl Query {
total,
start,
end,
height: *self.height(),
})
}
@@ -173,6 +174,7 @@ impl Query {
total,
start,
end,
..
} = resolved;
let output = match format {

View File

@@ -13,6 +13,7 @@ impl Query {
total,
start,
end,
..
} = resolved;
if vecs.is_empty() {

View File

@@ -10,11 +10,12 @@ pub struct ResolvedQuery {
pub(crate) total: usize,
pub(crate) start: usize,
pub(crate) end: usize,
pub(crate) height: u32,
}
impl ResolvedQuery {
pub fn etag(&self) -> Etag {
Etag::from_metric(self.version, self.total, self.start, self.end)
Etag::from_metric(self.version, self.total, self.start, self.end, self.height)
}
pub fn format(&self) -> Format {