Remove unnecessary waiting during completion RPC requests
Also, add completion requests to the randomized collaboration integration test, to demonstrate that this is valid. Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
90f31bb123
commit
41ba980c9b
5 changed files with 99 additions and 53 deletions
|
@ -265,7 +265,7 @@ impl Peer {
|
|||
.await
|
||||
.ok_or_else(|| anyhow!("connection was closed"))?;
|
||||
if let Some(proto::envelope::Payload::Error(error)) = &response.payload {
|
||||
Err(anyhow!("request failed").context(error.message.clone()))
|
||||
Err(anyhow!("RPC request failed - {}", error.message))
|
||||
} else {
|
||||
T::Response::from_envelope(response)
|
||||
.ok_or_else(|| anyhow!("received response of the wrong type"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue