From 6e4fd19d25b92ee3c7c02c862e01fb9e83285f6c Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Sat, 7 Dec 2024 01:45:14 -0500 Subject: [PATCH] The `getTokenAccountsByOwner` bench now actually fetches accounts (#3966) --- accounts-cluster-bench/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts-cluster-bench/src/main.rs b/accounts-cluster-bench/src/main.rs index 1fc3c0474ddbc4..81dba8f8b85182 100644 --- a/accounts-cluster-bench/src/main.rs +++ b/accounts-cluster-bench/src/main.rs @@ -430,7 +430,7 @@ fn run_rpc_bench_loop( RpcBench::TokenAccountsByOwner => { let mut rpc_time = Measure::start("rpc-get-token-accounts-by-owner"); let filter = TokenAccountsFilter::Mint(*mint.as_ref().unwrap()); - match client.get_token_accounts_by_owner(program_id, filter) { + match client.get_token_accounts_by_owner(base_keypair_pubkey, filter) { Ok(_accounts) => { rpc_time.stop(); stats.success += 1;