From ed5a24c591818c173e70cf088ea04c0a1e7311f2 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 4 Jan 2018 12:11:21 +0100 Subject: [PATCH] More concerns --- libp2p-identify/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libp2p-identify/src/lib.rs b/libp2p-identify/src/lib.rs index ea1d6087..4b85b2ab 100644 --- a/libp2p-identify/src/lib.rs +++ b/libp2p-identify/src/lib.rs @@ -74,15 +74,14 @@ impl ConnectionUpgrade for IdentifyProtocol { type NamesIter = iter::Once<(Bytes, Self::UpgradeIdentifier)>; type UpgradeIdentifier = (); + type Output = Option; + type Future = Box>; #[inline] fn protocol_names(&self) -> Self::NamesIter { iter::once((Bytes::from("/ipfs/id/1.0.0"), ())) } - type Output = Option; - type Future = Box>; - fn upgrade(self, socket: C, _: (), ty: Endpoint) -> Self::Future { // TODO: use jack's varint library instead let socket = length_delimited::Builder::new().length_field_length(1).new_framed(socket);