Skip to content

Commit

Permalink
chore(channel): Remove duplicate heap pin (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jul 15, 2024
1 parent 4aad5af commit 539d6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tonic/src/transport/channel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl Channel {

let svc = Connection::lazy(connector, endpoint);
let (svc, worker) = Buffer::pair(Either::A(svc), buffer_size);
executor.execute(Box::pin(worker));
executor.execute(worker);

Channel { svc }
}
Expand All @@ -176,7 +176,7 @@ impl Channel {
.await
.map_err(super::Error::from_source)?;
let (svc, worker) = Buffer::pair(Either::A(svc), buffer_size);
executor.execute(Box::pin(worker));
executor.execute(worker);

Ok(Channel { svc })
}
Expand Down

0 comments on commit 539d6f7

Please sign in to comment.