use separate rpc clients per task
This commit is contained in:
parent
ec24103f2a
commit
60393d3784
|
@ -18,10 +18,9 @@ pub struct Bencher;
|
|||
|
||||
impl Bencher {
|
||||
pub async fn bench<B: BenchFn>(args: Args) -> anyhow::Result<Metric> {
|
||||
let rpc_client = args.get_rpc_client();
|
||||
|
||||
let futs = (0..args.threads).map(|_| {
|
||||
let rpc_client = rpc_client.clone();
|
||||
let rpc_client = args.get_rpc_client();
|
||||
let duration = args.get_duration_to_run_test();
|
||||
|
||||
tokio::spawn(async move {
|
||||
|
|
Loading…
Reference in New Issue