Skip to content

Commit

Permalink
tighter size_hint estimate for Resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 2, 2024
1 parent 4cd3582 commit 3d23215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capnp-rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ impl<VatId> ConnectionState<VatId> {
}

// OK, we have to send a `Resolve` message.
let mut message = connection_state.new_outgoing_message(100)?; // XXX size hint?
let mut message = connection_state.new_outgoing_message(15)?;
{
let root: message::Builder = message.get_body()?.get_as()?;
let mut resolve = root.init_resolve();
Expand All @@ -1347,7 +1347,7 @@ impl<VatId> ConnectionState<VatId> {
}
Err(e) => {
// send error resolution
let mut message = connection_state.new_outgoing_message(100)?; // XXX size hint?
let mut message = connection_state.new_outgoing_message(15)?;
{
let root: message::Builder = message.get_body()?.get_as()?;
let mut resolve = root.init_resolve();
Expand Down

0 comments on commit 3d23215

Please sign in to comment.