Clarify url vs addr
This commit is contained in:
@ -354,7 +354,7 @@ impl Replicator {
|
||||
let rpc_peers = cluster_info.rpc_peers();
|
||||
debug!("rpc peers: {:?}", rpc_peers);
|
||||
let node_idx = thread_rng().gen_range(0, rpc_peers.len());
|
||||
RpcClient::new_from_socket(rpc_peers[node_idx].rpc)
|
||||
RpcClient::new_socket(rpc_peers[node_idx].rpc)
|
||||
};
|
||||
let storage_blockhash = rpc_client
|
||||
.make_rpc_request(2, RpcRequest::GetStorageBlockhash, None)
|
||||
|
@ -15,7 +15,7 @@ pub struct RemoteVoteSigner {
|
||||
|
||||
impl RemoteVoteSigner {
|
||||
pub fn new(signer: SocketAddr) -> Self {
|
||||
let rpc_client = RpcClient::new_from_socket(signer);
|
||||
let rpc_client = RpcClient::new_socket(signer);
|
||||
Self { rpc_client }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user