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

refactor(iroh-relay): simplify structure in clients #3100

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

dignifiedquire
Copy link
Contributor

Description

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@dignifiedquire dignifiedquire requested review from flub and ramfox January 7, 2025 10:45
Copy link

github-actions bot commented Jan 7, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3100/docs/iroh/

Last updated: 2025-01-07T10:47:41Z

Copy link

github-actions bot commented Jan 7, 2025

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 1bb38c4

Comment on lines +111 to +112
drop(client); // avoid deadlock
self.unregister(dst).await;
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps self.unregister should take the client: Ref<...>?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to drop it in there? that seems uneccessary

Copy link
Contributor

Choose a reason for hiding this comment

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

I like this suggestion, that could make it less dangerous?

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed that having unregister take the client we are doing something programatically to prevent this from happening again during a future refactor.

Copy link
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

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

I had a few more minutes...

Comment on lines +111 to +112
drop(client); // avoid deadlock
self.unregister(dst).await;
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this suggestion, that could make it less dangerous?

Copy link
Contributor

@matheus23 matheus23 left a comment

Choose a reason for hiding this comment

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

My suggestion is a nit tbh. I still think it's good, but I also think getting this merged is a pretty high priority and I don't want this to be blocked on that nit.

@ramfox ramfox merged commit 909d072 into ramfox/relay-deadlock Jan 7, 2025
26 checks passed
@ramfox ramfox deleted the dig/relay-deadlock branch January 7, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants