Skip to content

Commit

Permalink
remove insert_run_tx
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmel committed Oct 3, 2024
1 parent 2395502 commit 1e091e1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions sqlite_db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,6 @@ impl DbOps for SqliteDb {
Ok(res.into())
}

fn insert_run_tx(&self, run_id: u64, run_tx: RunTx) -> Result<()> {
self.execute(
"INSERT INTO run_txs (run_id, tx_hash, start_timestamp, end_timestamp, block_number, gas_used, kind) VALUES (?, ?, ?, ?, ?, ?, ?)",
params![
run_id,
run_tx.tx_hash.encode_hex(),
run_tx.start_timestamp,
run_tx.end_timestamp,
run_tx.block_number,
run_tx.gas_used.to_string(),
run_tx.kind,
],
)
}

fn insert_run_txs(&self, run_id: u64, run_txs: Vec<RunTx>) -> Result<()> {
let pool = self.get_pool()?;
let stmts = run_txs.iter().map(|tx| {
Expand Down

0 comments on commit 1e091e1

Please sign in to comment.