Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove insane compile_error! #2611

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Remove insane compile_error! #2611

merged 1 commit into from
Jun 5, 2024

Conversation

luckysori
Copy link
Contributor

I was trying to fail at compile time based on a runtime value (the settings). This is dumb.

We now fail at runtime if we try to use a fixed index price in release mode. Production always runs on release, so this exists to prevent using a fixed index price in production.

Obviously, release does not always equal production, but using the real index price from BitMEX is fine in most scenarios (except for the e2e tests and some instances of local testing).


This should fix problems like this one, which were preventing us from building the coordinator in release mode 🤦

I was trying to fail at compile time based on a runtime value (the
settings). This is dumb.

We now fail at runtime if we try to use a fixed index price in release
mode. Production always runs on release, so this exists to prevent
using a fixed index price in production.

Obviously, release does not always equal production, but using the
real index price from BitMEX is fine in most scenarios (except for
the e2e tests and some instances of local testing).
@luckysori luckysori requested review from bonomat and holzeis June 5, 2024 10:22
@luckysori luckysori self-assigned this Jun 5, 2024
@luckysori luckysori enabled auto-merge June 5, 2024 10:22
@luckysori luckysori added this pull request to the merge queue Jun 5, 2024
Merged via the queue into main with commit dddf292 Jun 5, 2024
24 checks passed
@luckysori luckysori deleted the fix/stupid-compile-error branch June 5, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants