From 47374aa36c8a1ec88514bc495fbdb06b7016bb6a Mon Sep 17 00:00:00 2001 From: Odysseas Gabrielides Date: Mon, 30 Dec 2024 13:53:24 +0200 Subject: [PATCH] fmt --- grovedb/src/replication.rs | 5 +---- grovedb/src/replication/state_sync_session.rs | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/grovedb/src/replication.rs b/grovedb/src/replication.rs index c2a6233d..ca51fa2f 100644 --- a/grovedb/src/replication.rs +++ b/grovedb/src/replication.rs @@ -236,10 +236,7 @@ impl GroveDb { )); } - println!( - " starting:{:?}...", - utils::path_to_string(&[]) - ); + println!(" starting:{:?}...", utils::path_to_string(&[])); let root_prefix = [0u8; 32]; diff --git a/grovedb/src/replication/state_sync_session.rs b/grovedb/src/replication/state_sync_session.rs index e040908d..e80f8c6f 100644 --- a/grovedb/src/replication/state_sync_session.rs +++ b/grovedb/src/replication/state_sync_session.rs @@ -17,7 +17,7 @@ use grovedb_storage::{ use grovedb_version::version::GroveVersion; use super::{ - utils::{encode_global_chunk_id, path_to_string, decode_vec_ops}, + utils::{decode_vec_ops, encode_global_chunk_id, path_to_string}, CURRENT_STATE_SYNC_VERSION, }; use crate::{replication, Element, Error, GroveDb, Transaction}; @@ -312,10 +312,7 @@ impl<'db> MultiStateSyncSession<'db> { let mut next_chunk_ids = vec![]; let (chunk_prefix, _, _, chunk_id) = - replication::utils::decode_global_chunk_id( - global_chunk_id, - &self.app_hash, - )?; + replication::utils::decode_global_chunk_id(global_chunk_id, &self.app_hash)?; if self.is_empty() { return Err(Error::InternalError(