Better naming
This commit is contained in:
parent
4bcd3494b7
commit
df420c3767
2 changed files with 27 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::{ErrorCode, ErrorCodeExt, ErrorExt, RPCError};
|
||||
use crate::{ErrorCode, ErrorCodeExt, ErrorExt, RpcError};
|
||||
|
||||
use super::{
|
||||
proto::{self, AnyTypedEnvelope, EnvelopedMessage, MessageStream, PeerId, RequestMessage},
|
||||
|
@ -425,7 +425,7 @@ impl Peer {
|
|||
let (response, _barrier) = rx.await.map_err(|_| anyhow!("connection was closed"))?;
|
||||
|
||||
if let Some(proto::envelope::Payload::Error(error)) = &response.payload {
|
||||
Err(RPCError::from_proto(&error, T::NAME))
|
||||
Err(RpcError::from_proto(&error, T::NAME))
|
||||
} else {
|
||||
Ok(TypedEnvelope {
|
||||
message_id: response.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue