Clarify url vs addr

This commit is contained in:
Michael Vines
2019-03-15 22:42:36 -07:00
parent e3ef4f25d3
commit c2b1010f18
10 changed files with 29 additions and 29 deletions

View File

@ -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)

View File

@ -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 }
}
}