Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyulong committed Oct 13, 2023
1 parent 8851141 commit febcdc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions simulator/src/replay/cmd_prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use tar::Header;

/// Prepare transactions from a fully synced Node database
#[derive(Parser, Debug)]
pub struct Prepare {
pub struct TxnPrepare {
/// Path to the `state_manager` database
pub database_dir: PathBuf,
/// Path to the output transaction file, in `.tar.gz` format, with entries sorted
Expand All @@ -25,7 +25,7 @@ pub struct Prepare {

const TRANSACTION_COLUMN: &str = "raw_ledger_transactions";

impl Prepare {
impl TxnPrepare {
pub fn run(&self) -> Result<(), Error> {
let temp_dir = tempfile::tempdir().map_err(Error::IOError)?;
let db = DB::open_cf_as_secondary(
Expand Down
6 changes: 3 additions & 3 deletions simulator/src/replay/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ pub struct ReplayCli {

#[derive(Subcommand, Debug)]
pub enum Command {
Prepare(Prepare),
Prepare(TxnPrepare),
Execute(TxnExecute),
TxnExecuteInMemory(TxnExecuteInMemory),
ExecuteInMemory(TxnExecuteInMemory),
Sync(TxnSync),
}

Expand All @@ -38,7 +38,7 @@ pub fn run() -> Result<(), Error> {
match cli.command {
Command::Prepare(cmd) => cmd.run(),
Command::Execute(cmd) => cmd.run(),
Command::TxnExecuteInMemory(cmd) => cmd.run(),
Command::ExecuteInMemory(cmd) => cmd.run(),
Command::Sync(cmd) => cmd.sync(),
}
}

0 comments on commit febcdc1

Please sign in to comment.