Skip to content

Commit

Permalink
Merge pull request #2611 from get10101/fix/stupid-compile-error
Browse files Browse the repository at this point in the history
Remove insane `compile_error!`
  • Loading branch information
luckysori authored Jun 5, 2024
2 parents f1167fd + 93cbfb0 commit dddf292
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coordinator/src/funding_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use diesel::PgConnection;
use rust_decimal::prelude::ToPrimitive;
use rust_decimal::Decimal;
use rust_decimal::RoundingStrategy;
use rust_decimal_macros::dec;
use std::time::Duration;
use time::ext::NumericalDuration;
use time::format_description;
Expand Down Expand Up @@ -153,9 +152,10 @@ fn generate_funding_fee_events(
})?,
IndexPriceSource::Test => {
#[cfg(not(debug_assertions))]
compile_error!("Cannot use a test index price in release mode");
panic!("Cannot use a test index price in release mode");

dec!(50_000)
#[cfg(debug_assertions)]
rust_decimal_macros::dec!(50_000)
}
};

Expand Down

0 comments on commit dddf292

Please sign in to comment.