From 7677ad6476ac91d679042df00ffe0084c09e028e Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Thu, 1 Jul 2021 18:31:39 +0000 Subject: [PATCH] Fix connect with connector lazy --- tonic/src/transport/channel/endpoint.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tonic/src/transport/channel/endpoint.rs b/tonic/src/transport/channel/endpoint.rs index 5bd9335..bc77750 100644 --- a/tonic/src/transport/channel/endpoint.rs +++ b/tonic/src/transport/channel/endpoint.rs @@ -336,10 +336,12 @@ impl Endpoint { /// Connect with a custom connector lazily. /// - /// This allows you to build a [Channel](struct.Channel.html) that uses a non-HTTP transport. + /// This allows you to build a [Channel](struct.Channel.html) that uses a non-HTTP transport + /// connec to it lazily. + /// /// See the `uds` example for an example on how to use this function to build channel that /// uses a Unix socket transport. - pub async fn connect_with_connector_lazy(&self, connector: C) -> Result + pub fn connect_with_connector_lazy(&self, connector: C) -> Result where C: MakeConnection + Send + 'static, C::Connection: Unpin + Send + 'static,