Skip to content

Commit

Permalink
rename serde_utils to serde_snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
svenski123 committed May 18, 2020
1 parent ee0eb36 commit 235ee72
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ledger/src/snapshot_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use regex::Regex;
use solana_measure::measure::Measure;
use solana_runtime::{
bank::{Bank, BankSlotDelta},
serde_utils::{
serde_snapshot::{
context_bankrc_from_stream, context_bankrc_to_stream, SerdeContextV1_1_0,
SerdeContextV1_1_1, SnapshotStorage, SnapshotStorages,
},
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ pub mod tests {
use crate::{
accounts_index::RefCount,
append_vec::AccountMeta,
serde_utils::{accountsdb_from_stream, accountsdb_to_stream},
serde_snapshot::{accountsdb_from_stream, accountsdb_to_stream},
};
use assert_matches::assert_matches;
use rand::{thread_rng, Rng};
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5697,7 +5697,7 @@ mod tests {
let mut buf = vec![];
let mut writer = Cursor::new(&mut buf);
serialize_into(&mut writer, &bank2).unwrap();
crate::serde_utils::bankrc_to_stream(
crate::serde_snapshot::bankrc_to_stream(
&mut std::io::BufWriter::new(&mut writer),
&bank2.rc,
&snapshot_storages,
Expand All @@ -5716,7 +5716,7 @@ mod tests {
let copied_accounts = TempDir::new().unwrap();
copy_append_vecs(&bank2.rc.accounts.accounts_db, copied_accounts.path()).unwrap();
dbank.set_bank_rc(
crate::serde_utils::bankrc_from_stream(
crate::serde_snapshot::bankrc_from_stream(
&dbank_paths,
dbank.slot(),
&mut reader,
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod message_processor;
mod native_loader;
pub mod nonce_utils;
pub mod rent_collector;
pub mod serde_utils;
pub mod serde_snapshot;
pub mod stakes;
pub mod status_cache;
mod system_instruction_processor;
Expand Down
File renamed without changes.

0 comments on commit 235ee72

Please sign in to comment.