From 7e0da612565603b276aee3cb7c2779266f12680f Mon Sep 17 00:00:00 2001 From: Peter Zhang Date: Sat, 28 Sep 2024 10:24:52 +0800 Subject: [PATCH] update store usage --- node/log_entry_sync/src/sync_manager/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/log_entry_sync/src/sync_manager/mod.rs b/node/log_entry_sync/src/sync_manager/mod.rs index 48b3558..4e1850b 100644 --- a/node/log_entry_sync/src/sync_manager/mod.rs +++ b/node/log_entry_sync/src/sync_manager/mod.rs @@ -481,7 +481,7 @@ impl LogSyncManager { } else { // check if current node need to save at least one segment let store = self.store.clone(); - let shard_config = store.flow().get_shard_config(); + let shard_config = store.get_shard_config(); let start_segment_index = tx.start_entry_index as usize / PORA_CHUNK_SIZE; let sector_size = bytes_to_chunks(tx.size as usize); let end_segment_index = start_segment_index