-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
add an option to start the relay v2 #1197
Conversation
71eb4bf
to
f6460f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, these names are very confusing.
I have suggested some alternatives.
|
e101c65
to
97696ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; only thing we need is to make it disabled by default as @Stebalien requested.
Also, the package name for the manager/service is rather confusing, let's call it something more appropriate.
config/config.go
Outdated
Relay bool | ||
Relay bool // should the relay transport be used | ||
|
||
DisableRelayService bool // should we run a circuitv2 relay (if publicly reachable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's heed to @Stebalien's request to not enable it by default, so this should be EnableRelayService
I guess and the logic inverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
We'll still enable this by default in IPFS / Filecoin, won't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll still enable this by default in IPFS / Filecoin, won't we?
Yes, or at least in IPFS. But libp2p is a library not an application.
97696ac
to
73d295d
Compare
73d295d
to
bec5b2b
Compare
3c26307
to
70e17db
Compare
70e17db
to
0aeef55
Compare
I'm not satisfied with the names for the config options, but I struggle to come up with something better. Suggestions would be highly appreciated.
I wish we could use
EnableRelay()
here, but unfortunately this is already taken to enable the relay transport.