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
+2 -8
View File
@@ -14,15 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
#[macro_use]
extern crate futures;
#[macro_use]
extern crate substrate_network_libp2p;
extern crate tokio;
use futures::{future, prelude::*};
use futures::{future, prelude::*, try_ready};
use std::{io, iter};
use substrate_network_libp2p::ServiceEvent;
use substrate_network_libp2p::{ServiceEvent, multiaddr};
/// Builds two services. The second one has the first one as its bootstrap node.
/// This is to be used only for testing, and a panic will happen if something goes wrong.