Skip to content

Commit

Permalink
Fix commented logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ellttBen committed Aug 15, 2022
1 parent 8d686c4 commit 0f2d0af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions program/src/state/critbit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ impl LeafNode {

/// Parse a leaf node's price
pub fn price(&self) -> u64 {
// #[cfg(not(target_arch = "aarch64"))]
// Self::price_from_key(self.key)
// #[cfg(target_arch = "aarch64")]
Self::price_from_key(self.order_id())
#[cfg(not(target_arch = "aarch64"))]
let res = Self::price_from_key(self.key);
#[cfg(target_arch = "aarch64")]
let res = Self::price_from_key(self.order_id());
res
}

/// Get the associated order id
Expand Down

0 comments on commit 0f2d0af

Please sign in to comment.