Relieve the caller of having to care about the rpc request id

This commit is contained in:
Michael Vines
2019-03-15 23:49:28 -07:00
parent c2b1010f18
commit bcc34b906c
10 changed files with 51 additions and 55 deletions

View File

@@ -139,8 +139,12 @@ fn test_transaction_count() {
solana_logger::setup();
let addr = "0.0.0.0:1234".parse().unwrap();
let transactions_socket = UdpSocket::bind("0.0.0.0:0").unwrap();
let mut client =
ThinClient::new_socket_with_timeout(addr, addr, transactions_socket, Duration::from_secs(2));
let mut client = ThinClient::new_socket_with_timeout(
addr,
addr,
transactions_socket,
Duration::from_secs(2),
);
assert_eq!(client.transaction_count(), 0);
}