Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 7449edc

Browse files
garioussvenski123
authored andcommitted
Remove lock around JsonRpcRequestProcessor (#10417)
automerge
1 parent 2a1e96d commit 7449edc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/src/rpc.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,10 +1314,7 @@ impl RpcSol for RpcSolImpl {
13141314
let faucet_addr = meta.config.faucet_addr.ok_or_else(Error::invalid_request)?;
13151315
let pubkey = verify_pubkey(pubkey_str)?;
13161316

1317-
let blockhash = meta
1318-
.bank(commitment)?
1319-
.confirmed_last_blockhash()
1320-
.0;
1317+
let blockhash = meta.bank(commitment)?.confirmed_last_blockhash().0;
13211318
let transaction = request_airdrop_transaction(&faucet_addr, &pubkey, lamports, blockhash)
13221319
.map_err(|err| {
13231320
info!("request_airdrop_transaction failed: {:?}", err);

0 commit comments

Comments
 (0)