Update network-libp2p to edition 2018 (#1481)

This commit is contained in:
Pierre Krieger
2019-01-19 12:38:52 +01:00
committed by Gav Wood
parent f1f32ac620
commit b009b42a68
12 changed files with 29 additions and 103 deletions
@@ -18,7 +18,8 @@ use fnv::FnvHashMap;
use libp2p::{Multiaddr, PeerId, identify::IdentifyTopology, multihash::Multihash};
use libp2p::core::{PublicKey, swarm::ConnectedPoint, topology::DisconnectReason, topology::Topology};
use libp2p::kad::{KBucketsPeerId, KadConnectionType, KademliaTopology};
use serde_json;
use log::{debug, info, trace, warn};
use serde_derive::{Serialize, Deserialize};
use std::{cmp, fs, iter, vec};
use std::io::{Read, Cursor, Error as IoError, ErrorKind as IoErrorKind, Write, BufReader, BufWriter};
use std::path::{Path, PathBuf};