Skip to content

Commit

Permalink
[fix]: update usages of block_store_path
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Balashov <[email protected]>
  • Loading branch information
0x009922 committed Dec 6, 2023
1 parent 48201cd commit 0787e92
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
8 changes: 1 addition & 7 deletions config/src/iroha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,7 @@ mod tests {
let cfg_proxy = ConfigurationProxy::from_path(CONFIGURATION_PATH);
assert_eq!(
"./storage",
cfg_proxy
.kura
.unwrap()
.block_store_path
.unwrap()
.to_str()
.unwrap()
cfg_proxy.kura.unwrap().block_store_path.unwrap()
);
assert_eq!(
10000,
Expand Down
2 changes: 1 addition & 1 deletion core/benches/kura.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async fn measure_block_size_for_n_executors(n_executors: u32) {
let cfg = Configuration {
init_mode: iroha_config::kura::Mode::Strict,
debug_output_new_blocks: false,
block_store_path: dir.path().to_path_buf(),
block_store_path: dir.path().to_str().unwrap().into(),
};
let kura = iroha_core::kura::Kura::new(&cfg).unwrap();
let _thread_handle = iroha_core::kura::Kura::start(kura.clone());
Expand Down
2 changes: 1 addition & 1 deletion core/src/kura.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ mod tests {
let temp_dir = TempDir::new().unwrap();
Kura::new(&Configuration {
init_mode: Mode::Strict,
block_store_path: temp_dir.into_path(),
block_store_path: temp_dir.path().to_str().unwrap().into(),
debug_output_new_blocks: false,
})
.unwrap()
Expand Down
2 changes: 1 addition & 1 deletion core/test_network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl Peer {
temp_dir: Arc<TempDir>,
) {
let mut configuration = self.get_config(configuration);
configuration.kura.block_store_path = temp_dir.path().to_path_buf();
configuration.kura.block_store_path = temp_dir.path().to_str().unwrap().into();
let info_span = iroha_logger::info_span!(
"test-peer",
p2p_addr = %self.p2p_address,
Expand Down

0 comments on commit 0787e92

Please sign in to comment.