Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
sistemd committed Nov 2, 2022
1 parent 3a62da0 commit 1188e25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/autopilot/src/solvable_orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl SolvableOrdersCache {
Some(order)
}
Err(err) => {
tracing::error!(
tracing::warn!(
order_uid =% order.metadata.uid, ?err,
"filtered limit order due to quoting error"
);
Expand Down
6 changes: 3 additions & 3 deletions crates/shared/src/order_quoting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,14 @@ impl TryFrom<QuoteRow> for QuoteData {
#[mockall::automock]
#[async_trait::async_trait]
pub trait OrderQuoting: Send + Sync {
/// Computes a quote for the specified order paramters. Doesn't store the quote.
/// Computes a quote for the specified order parameters. Doesn't store the quote.
async fn calculate_quote(
&self,
parameters: QuoteParameters,
) -> Result<Quote, CalculateQuoteError>;

/// Stores a quote.
async fn store_quote(&self, quote: Quote) -> anyhow::Result<Quote>;
async fn store_quote(&self, quote: Quote) -> Result<Quote>;

/// Finds an existing quote.
async fn find_quote(
Expand Down Expand Up @@ -558,7 +558,7 @@ impl OrderQuoting for OrderQuoter {
Ok(quote)
}

async fn store_quote(&self, quote: Quote) -> anyhow::Result<Quote> {
async fn store_quote(&self, quote: Quote) -> Result<Quote> {
let id = self.storage.save(quote.data.clone()).await?;
Ok(Quote {
id: Some(id),
Expand Down

0 comments on commit 1188e25

Please sign in to comment.