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,