From d31c1bddd92d8d50b6442fe7b0d4b8331e513d1e Mon Sep 17 00:00:00 2001 From: Slava Savenko Date: Mon, 10 Feb 2025 16:19:36 +0100 Subject: [PATCH] wip --- Cargo.lock | 2 +- benchmarks/transactions-generator/Cargo.toml | 7 ++++--- benchmarks/transactions-generator/src/lib.rs | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9a679eaa160..b1cb4437b60 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5201,7 +5201,6 @@ version = "0.0.0" dependencies = [ "actix", "anyhow", - "clap", "near-async", "near-crypto", "near-network", @@ -5210,6 +5209,7 @@ dependencies = [ "serde", "serde_json", "tokio", + "tracing", ] [[package]] diff --git a/benchmarks/transactions-generator/Cargo.toml b/benchmarks/transactions-generator/Cargo.toml index e06efafe218..088133b614b 100644 --- a/benchmarks/transactions-generator/Cargo.toml +++ b/benchmarks/transactions-generator/Cargo.toml @@ -12,17 +12,18 @@ default = ["with_actix"] with_actix = ["near-async", "near-network", "actix"] [dependencies] -clap = { workspace = true, features = ["derive"] } +# clap = { workspace = true, features = ["derive"] } +actix = { workspace = true, optional = true } anyhow.workspace = true near-async = {workspace = true, optional = true } near-crypto = { workspace = true } -near-primitives = { workspace = true, features = ["clock", "test_utils"] } near-network = { workspace = true, optional = true } +near-primitives = { workspace = true, features = ["clock", "test_utils"] } rand.workspace = true serde = { workspace = true, features = ["derive"] } serde_json.workspace = true tokio = { workspace = true, features = ["full"] } -actix = { workspace = true, optional = true } +tracing = { workspace = true, features = ["std"] } [lints] diff --git a/benchmarks/transactions-generator/src/lib.rs b/benchmarks/transactions-generator/src/lib.rs index 7ea3f428395..536014bff11 100644 --- a/benchmarks/transactions-generator/src/lib.rs +++ b/benchmarks/transactions-generator/src/lib.rs @@ -55,6 +55,7 @@ impl TxGenerator { let client_sender = self.client_sender.clone(); thread::spawn(move ||{ let mut rnd: StdRng = SeedableRng::from_entropy(); + tracing::info!(target: "transaction-generator", "thread starting"); loop { let block_hash = CryptoHash::default(); // todo(slavas): fix before merge