Skip to content

Commit

Permalink
Renaming RecvError to OneshotRecv
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu-maeda committed Jan 23, 2024
1 parent 3193ff6 commit b6a52d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/common/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub enum N3xbError {
MpscSend(String),
Io(io::Error),
JoinError(tokio::task::JoinError),
RecvError(tokio::sync::oneshot::error::RecvError),
OneshotRecv(tokio::sync::oneshot::error::RecvError),
}

impl Error for N3xbError {}
Expand Down Expand Up @@ -55,7 +55,7 @@ impl fmt::Display for N3xbError {
N3xbError::JoinError(err) => {
format!("n3xB-Error | JoinError - {}", err.to_string())
}
N3xbError::RecvError(err) => {
N3xbError::OneshotRecv(err) => {
format!("n3xB-Error | RecvError - {}", err.to_string())
}
};
Expand Down Expand Up @@ -119,7 +119,7 @@ impl From<tokio::task::JoinError> for N3xbError {

impl From<tokio::sync::oneshot::error::RecvError> for N3xbError {
fn from(e: tokio::sync::oneshot::error::RecvError) -> N3xbError {
N3xbError::RecvError(e)
N3xbError::OneshotRecv(e)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::comms::{Comms, CommsAccess};
use crate::maker::{Maker, MakerAccess};
use crate::offer::Offer;
use crate::order::{FilterTag, Order, OrderEnvelope};
use crate::taker::{self, Taker, TakerAccess};
use crate::taker::{Taker, TakerAccess};

// At the moment we only support a single Trade Engine at a time.
// Might need to change to a dyn Trait if mulitple is to be supported at a time
Expand Down

0 comments on commit b6a52d6

Please sign in to comment.