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);