Boot futures 0.1

We added them thinking it'd be a good stepping stone towards an
asynchronous thin client, but it's used inconsistently and where
it used, the function is still synchronous, which is just confusing.
This commit is contained in:
Greg Fitzgerald
2018-05-31 13:41:42 -06:00
parent 391744af97
commit c9fd5d74b5
5 changed files with 7 additions and 16 deletions

View File

@ -1,10 +1,8 @@
#[macro_use]
extern crate log;
extern crate bincode;
extern crate futures;
extern crate solana;
use futures::Future;
use solana::bank::Bank;
use solana::crdt::TestNode;
use solana::crdt::{Crdt, ReplicatedData};
@ -167,7 +165,7 @@ fn tx_and_retry_get_balance(
) -> io::Result<i64> {
let mut client = mk_client(leader);
trace!("getting leader last_id");
let last_id = client.get_last_id().wait().unwrap();
let last_id = client.get_last_id();
info!("executing leader transer");
let _sig = client
.transfer(500, &alice.keypair(), *bob_pubkey, &last_id)