diff options
Diffstat (limited to 'ipfs-api/examples/bootstrap_default.rs')
-rw-r--r-- | ipfs-api/examples/bootstrap_default.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ipfs-api/examples/bootstrap_default.rs b/ipfs-api/examples/bootstrap_default.rs index 79c66ab..1d6d75c 100644 --- a/ipfs-api/examples/bootstrap_default.rs +++ b/ipfs-api/examples/bootstrap_default.rs @@ -10,8 +10,8 @@ extern crate futures; extern crate hyper; extern crate ipfs_api; -use ipfs_api::IpfsClient; use futures::Future; +use ipfs_api::IpfsClient; // Lists clients in bootstrap list, then adds the default list, then removes // them, and readds them. @@ -49,13 +49,11 @@ fn main() { println!("dropping all bootstrap peers..."); drop - }) - .and_then(|_| { + }).and_then(|_| { println!(); println!("adding default peers..."); add - }) - .map_err(|e| eprintln!("{}", e)), + }).map_err(|e| eprintln!("{}", e)), ); } |