Skip to content

Commit

Permalink
chore: remove redundant bound on connections
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar committed Oct 18, 2024
1 parent 3363440 commit 7515622
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tonic/src/transport/channel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use http::{
uri::{InvalidUri, Uri},
Request, Response,
};
use hyper_util::client::legacy::connect::Connection as HyperConnection;
use std::{
fmt,
future::Future,
Expand Down Expand Up @@ -153,7 +152,7 @@ impl Channel {
C: Service<Uri> + Send + 'static,
C::Error: Into<crate::Error> + Send,
C::Future: Send,
C::Response: rt::Read + rt::Write + HyperConnection + Unpin + Send + 'static,
C::Response: rt::Read + rt::Write + Unpin + Send + 'static,
{
let buffer_size = endpoint.buffer_size.unwrap_or(DEFAULT_BUFFER_SIZE);
let executor = endpoint.executor.clone();
Expand All @@ -173,7 +172,7 @@ impl Channel {
C: Service<Uri> + Send + 'static,
C::Error: Into<crate::Error> + Send,
C::Future: Unpin + Send,
C::Response: rt::Read + rt::Write + HyperConnection + Unpin + Send + 'static,
C::Response: rt::Read + rt::Write + Unpin + Send + 'static,
{
let buffer_size = endpoint.buffer_size.unwrap_or(DEFAULT_BUFFER_SIZE);
let executor = endpoint.executor.clone();
Expand Down

0 comments on commit 7515622

Please sign in to comment.