mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
server: snapshot
This commit is contained in:
@@ -6,7 +6,7 @@ use std::{
|
||||
io::{Read, Seek, SeekFrom},
|
||||
mem,
|
||||
ops::ControlFlow,
|
||||
path::PathBuf,
|
||||
path::{Path, PathBuf},
|
||||
sync::Arc,
|
||||
thread,
|
||||
time::Duration,
|
||||
@@ -75,6 +75,10 @@ impl ReaderInner {
|
||||
&self.client
|
||||
}
|
||||
|
||||
pub fn blocks_dir(&self) -> &Path {
|
||||
&self.blocks_dir
|
||||
}
|
||||
|
||||
pub fn blk_index_to_blk_path(&self) -> RwLockReadGuard<'_, BlkIndexToBlkPath> {
|
||||
self.blk_index_to_blk_path.read()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user