Skip to content

Finalize openvpn removal - #582

Merged
vkuznecovas merged 3 commits into
masterfrom
finalize-openvpn-removal
Nov 28, 2018
Merged

Finalize openvpn removal#582
vkuznecovas merged 3 commits into
masterfrom
finalize-openvpn-removal

Conversation

@vkuznecovas

Copy link
Copy Markdown
Contributor
  1. Removed uneeded openvpn bootstrap from discovery tests
  2. Services are now only bootstrapped on desktop platforms
  3. Had a chat with Valdas about the mysterious TODO. Removed it, as everything seems ok with the flag parsing atm.

Closes #530
Closes #382

Comment thread cmd/service_bootstrap_desktop.go Outdated
"github.com/mysteriumnetwork/node/session"
)

func (di *Dependencies) bootstrapServices(nodeOptions node.Options) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like this small function which is really desktop specific. So a suggestion - do component bootstraping as part of common code. Extract bootStrapServices method which might return erorr. On desktop - bootstrap openvpn, noop, wireguard, on mobile return error. Any thoughts? You will avoid if runner == nil check and return of the error by doing compile time decision return error or not.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

excellent idea!

@tadovas tadovas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome! 👍

@soffokl soffokl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me.

@vkuznecovas
vkuznecovas merged commit 06d9ce2 into master Nov 28, 2018
@vkuznecovas
vkuznecovas deleted the finalize-openvpn-removal branch November 28, 2018 11: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.

3 participants