Skip to content

Commit 690c403

Browse files
committed
remove unnecessary async
1 parent 4b70935 commit 690c403

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/shared/src/price_estimation/sanitized.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl SanitizedPriceEstimator {
4444
}
4545

4646
/// Checks if the traded tokens are supported by the protocol.
47-
async fn handle_deny_listed_tokens(&self, query: &Query) -> Result<(), PriceEstimationError> {
47+
fn handle_deny_listed_tokens(&self, query: &Query) -> Result<(), PriceEstimationError> {
4848
for token in [query.sell_token, query.buy_token] {
4949
if self.deny_listed_tokens.contains(&token) {
5050
return Err(PriceEstimationError::UnsupportedToken {
@@ -64,7 +64,7 @@ impl PriceEstimating for SanitizedPriceEstimator {
6464
query: Arc<Query>,
6565
) -> futures::future::BoxFuture<'_, super::PriceEstimateResult> {
6666
async move {
67-
self.handle_deny_listed_tokens(&query).await?;
67+
self.handle_deny_listed_tokens(&query)?;
6868
// When estimating native price the sell token is substituted by
6969
// native one. In that case, the output amount of the price
7070
// estimation can be trivially computed as the same amount as input

0 commit comments

Comments
 (0)