Skip to content

Commit 539d6f7

Browse files
authored
chore(channel): Remove duplicate heap pin (#1798)
1 parent 4aad5af commit 539d6f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tonic/src/transport/channel

tonic/src/transport/channel/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl Channel {
157157

158158
let svc = Connection::lazy(connector, endpoint);
159159
let (svc, worker) = Buffer::pair(Either::A(svc), buffer_size);
160-
executor.execute(Box::pin(worker));
160+
executor.execute(worker);
161161

162162
Channel { svc }
163163
}
@@ -176,7 +176,7 @@ impl Channel {
176176
.await
177177
.map_err(super::Error::from_source)?;
178178
let (svc, worker) = Buffer::pair(Either::A(svc), buffer_size);
179-
executor.execute(Box::pin(worker));
179+
executor.execute(worker);
180180

181181
Ok(Channel { svc })
182182
}

0 commit comments

Comments
 (0)