Pass bank to rpc as reference

This commit is contained in:
Tyera Eulberg
2018-08-22 16:44:26 -06:00
committed by Tyera Eulberg
parent d910ed68a3
commit 2de8fe9c5f
3 changed files with 4 additions and 4 deletions

View File

@@ -25,13 +25,13 @@ pub struct JsonRpcService {
impl JsonRpcService {
pub fn new(
bank: Arc<Bank>,
bank: &Arc<Bank>,
transactions_addr: SocketAddr,
drone_addr: SocketAddr,
rpc_addr: SocketAddr,
exit: Arc<AtomicBool>,
) -> Self {
let request_processor = JsonRpcRequestProcessor::new(bank);
let request_processor = JsonRpcRequestProcessor::new(bank.clone());
let thread_hdl = Builder::new()
.name("solana-jsonrpc".to_string())
.spawn(move || {