Skip to content

Commit 2f0a86b

Browse files
committed
clean up pt2
1 parent 52be4d9 commit 2f0a86b

File tree

5 files changed

+8
-30
lines changed

5 files changed

+8
-30
lines changed

crates/audit/src/reader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rdkafka::{
1010
use std::time::{Duration, SystemTime, UNIX_EPOCH};
1111
use tips_core::kafka::load_kafka_config_from_file;
1212
use tokio::time::sleep;
13-
use tracing::{error, info};
13+
use tracing::{debug, error};
1414

1515
pub fn create_kafka_consumer(kafka_properties_file: &str) -> Result<StreamConsumer> {
1616
let client_config: ClientConfig =
@@ -79,7 +79,7 @@ impl EventReader for KafkaAuditLogReader {
7979

8080
let event: BundleEvent = serde_json::from_slice(payload)?;
8181

82-
info!(
82+
debug!(
8383
event_name = %event.event_name(),
8484
bundle_id = ?event.bundle_id(),
8585
tx_hash = ?event.tx_hash(),

crates/audit/src/storage.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,53 +63,45 @@ pub enum BundleHistoryEvent {
6363
timestamp: i64,
6464
reason: DropReason,
6565
},
66-
/// Transaction received by ingress-rpc
6766
TransactionReceived {
6867
key: String,
6968
timestamp: i64,
7069
bundle: Box<AcceptedBundle>,
7170
},
72-
/// Transaction sent from ingress-rpc
7371
TransactionSent {
7472
key: String,
7573
timestamp: i64,
7674
tx_hash: TxHash,
7775
},
78-
/// Backrun bundle received by ingress-rpc
7976
BackrunReceived {
8077
key: String,
8178
timestamp: i64,
8279
bundle: Box<AcceptedBundle>,
8380
},
84-
/// Backrun bundle sent to builder from ingress-rpc
8581
BackrunSent {
8682
key: String,
8783
timestamp: i64,
8884
target_tx_hash: TxHash,
8985
},
90-
/// Backrun bundle inserted into builder store in builder
9186
BackrunInserted {
9287
key: String,
9388
timestamp: i64,
9489
target_tx_hash: TxHash,
9590
backrun_tx_hashes: Vec<TxHash>,
9691
},
97-
/// Transaction selected for execution
9892
StartExecuting {
9993
key: String,
10094
timestamp: i64,
10195
tx_hash: TxHash,
10296
block_number: u64,
10397
},
104-
/// Transaction successfully executed
10598
Executed {
10699
key: String,
107100
timestamp: i64,
108101
tx_hash: TxHash,
109102
block_number: u64,
110103
gas_used: u64,
111104
},
112-
/// Backrun bundle transaction executed
113105
BackrunBundleExecuted {
114106
key: String,
115107
timestamp: i64,

crates/audit/src/types.rs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -268,22 +268,13 @@ impl BundleEvent {
268268
BundleEvent::BackrunInserted { bundle_id, .. } => {
269269
format!("backrun-inserted-{bundle_id}")
270270
}
271-
BundleEvent::StartExecuting {
272-
tx_hash,
273-
..
274-
} => {
271+
BundleEvent::StartExecuting { tx_hash, .. } => {
275272
format!("tx-start-executing-{tx_hash}")
276-
},
277-
BundleEvent::Executed {
278-
tx_hash,
279-
..
280-
} => {
273+
}
274+
BundleEvent::Executed { tx_hash, .. } => {
281275
format!("tx-executed-{tx_hash}")
282-
},
283-
BundleEvent::BackrunBundleExecuted {
284-
bundle_id,
285-
..
286-
} => {
276+
}
277+
BundleEvent::BackrunBundleExecuted { bundle_id, .. } => {
287278
format!("backrun-bundle-executed-{bundle_id}")
288279
}
289280
_ => {

crates/ingress-rpc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::net::{IpAddr, SocketAddr};
1111
use std::str::FromStr;
1212
use tips_core::MeterBundleResponse;
1313
use tokio::sync::broadcast;
14-
use tracing::{error, info, warn};
14+
use tracing::{error, warn};
1515
use url::Url;
1616

1717
#[derive(Debug, Clone, Copy)]

justfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ get-blocks:
9999
sender := "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
100100
sender_key := "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
101101

102-
backrunner := "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
103-
backrunner_key := "0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a"
104-
105-
chain_id := "13"
106-
107102
send-txn:
108103
#!/usr/bin/env bash
109104
set -euxo pipefail

0 commit comments

Comments
 (0)