-
Notifications
You must be signed in to change notification settings - Fork 163
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
feat(iroh-base, iroh-net-report)!: intro net-report as a crate #2921
feat(iroh-base, iroh-net-report)!: intro net-report as a crate #2921
Conversation
21c7c04
to
adc58e7
Compare
2c36bbd
to
4efedc8
Compare
@@ -221,7 +225,7 @@ impl Client { | |||
/// | |||
/// Unlike the client itself the returned [`Addr`] does not own the actor task, it only | |||
/// allows sending messages to the actor. | |||
pub(crate) fn addr(&self) -> Addr { |
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.
note for the future: this is unused in this crate
make sure to also add this to the two ci files that need a list of crates |
iroh-net/src/defaults.rs
Outdated
|
||
/// Maximum duration to wait for a netcheck report. | ||
/// Maximum duration to wait for a net_report report. | ||
pub(crate) const NETCHECK_REPORT_TIMEOUT: Duration = Duration::from_secs(10); |
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.
the constant should be renamed as well?
looking good, found one last rename |
@dignifiedquire fixed. There's a bunch of |
I think we can clean this up in follow ups :) lets get the structure in |
Description
Introduces net-report as its own crate. For this, introduces a new feature flag
relay
iniroh-base
for the relay topology types.iroh-base
, theRelayUrl
is moved to its own file. It can still be used as before, this is not a breaking change.RelayMap
,RelayNode
are moved toiroh-base
under therelay
feature flag.RelayMode
is moved toendpoint
. See the NOTES section about this.iroh-net
toiroh-net-report
. This is the only place where it's used so it should have probably been part ofnetcheck
as a module from the beginig.Breaking Changes
iroh-net
'sNetcheckMetrics
are now calledNetReportMetrics
Notes & open questions
RelayMode
remains iniroh-net
instead of moving toiroh-base
with other relay related because this is coupled with the staging and prod configuration of relay urls. Since this is more configuration than concept I think it's best to keep it in iroh-net.iroh-net-report
because -at least currently- it depends on relay concepts. For example, the tests depend heavily on the internal order of theRelayMap
. Can we change this? yes. Should we change this? we can discuss it. Is this PR the place for any of that? No.iroh-net
) It's not terrible but it could be improved.Change checklist
Tests if relevant.All breaking changes documented.