global: snapshot

This commit is contained in:
nym21
2025-10-24 12:04:10 +02:00
parent 4f1653b086
commit 1e4acfe124
30 changed files with 200 additions and 139 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ const BOUND_CAP: usize = 50;
pub struct Reader(Arc<ReaderInner>);
impl Reader {
pub fn new(blocks_dir: PathBuf, client: Client) -> Self {
Self(Arc::new(ReaderInner::new(blocks_dir, client)))
pub fn new(blocks_dir: PathBuf, client: &Client) -> Self {
Self(Arc::new(ReaderInner::new(blocks_dir, client.clone())))
}
}