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,4 +1,3 @@
extern crate futures;
extern crate getopts;
extern crate isatty;
extern crate pnet;
@ -6,7 +5,6 @@ extern crate rayon;
extern crate serde_json;
extern crate solana;
use futures::Future;
use getopts::Options;
use isatty::stdin_isatty;
use pnet::datalink;
@ -128,7 +126,7 @@ fn main() {
let mut client = mk_client(&client_addr, &leader);
println!("Get last ID...");
let last_id = client.get_last_id().wait().unwrap();
let last_id = client.get_last_id();
println!("Got last ID {:?}", last_id);
let rnd = GenKeys::new(demo.mint.keypair().public_key_bytes());