Skip to content

Commit

Permalink
clarify comment in local::Request::send_streaming()
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 19, 2024
1 parent 2b12eba commit 3971aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capnp-rpc/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ impl RequestHook for Request {
}
}
fn send_streaming(self: Box<Self>) -> Promise<(), Error> {
// No special handling for streaming in this case. Calls are delivered one at a time.
// Local client gets no special handling for streaming, because there is no
// network latency to compensate for.
Promise::from_future(async {
let _ = self.send().promise.await?;
Ok(())
Expand Down

0 comments on commit 3971aac

Please sign in to comment.