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

Make CoreApi a singleton #4461

Merged
merged 3 commits into from
Sep 2, 2020
Merged

Conversation

ghubstan
Copy link
Contributor

@ghubstan ghubstan commented Sep 1, 2020

This PR ensures a daemon never creates more than one CoreApi instance, but two additional, minor changes are included:

  • Add @VisibleForTesting annotation to CompositeOptionSet to explain why it is no longer package protected.

  • Remove commented code from BisqAppMain.

The access modifier on CompositeOptionSet was changed to public
in commit c402386, to make it visible to the apitest config
class.  The annotation added in this change concisely explains
why the class is not package protected.
Also fixed line length of a comment, and removed two extra white lines.
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

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

utACK

@sqrrm sqrrm merged commit 604dabb into bisq-network:master Sep 2, 2020
@ghubstan ghubstan deleted the 1-singleton-coreapi branch September 16, 2020 15:36
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