Cleanup client traits and create super trait (#3728)

This commit is contained in:
Jack May
2019-04-11 00:25:14 -07:00
committed by GitHub
parent 4b6c0198ad
commit d0f46d6a8a
22 changed files with 153 additions and 115 deletions

View File

@@ -266,7 +266,7 @@ impl RpcClient {
/// Request the transaction count. If the response packet is dropped by the network,
/// this method will try again 5 times.
pub fn get_transaction_count(&self) -> Result<u64, Box<dyn error::Error>> {
pub fn get_transaction_count(&self) -> io::Result<u64> {
debug!("get_transaction_count");
let mut num_retries = 5;