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

Require at least one payment driver enabled #825

Merged
merged 2 commits into from
Nov 27, 2020

Conversation

Wiezzel
Copy link

@Wiezzel Wiezzel commented Nov 24, 2020

Testing instructions:

Try to compile the project without any driver features enabled. Expect an error.

$ cargo build --no-default-features
   Compiling yagna v0.5.0 (/home/adam/yagna)
error: At least one payment driver needs to be enabled in order to make payments.
   --> core/serv/src/main.rs:232:1
    |
232 | compile_error!("At least one payment driver needs to be enabled in order to make payments.");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `yagna`

To learn more, run the command again with --verbose.

@Wiezzel Wiezzel requested a review from maaktweluit November 24, 2020 16:09
@Wiezzel Wiezzel self-assigned this Nov 24, 2020
Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Tested OK

@maaktweluit maaktweluit merged commit 2a39b2b into master Nov 27, 2020
@maaktweluit maaktweluit deleted the wiezzel/at_least_one_driver branch November 27, 2020 10:50
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.

2 participants