-
Notifications
You must be signed in to change notification settings - Fork 964
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(swarm): allow both Disconnected and NotDialing condition combined #4225
Conversation
5547acc
to
d854d71
Compare
I moved this to draft to prevent it being merged accidentally. I am surprised cargo semver-checks doesn't pick up on this? |
|
I noticed that we are two versions behind so maybe that is why :) |
This pull request has merge conflicts. Could you please resolve them @b-zee? 🙏 |
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.
Thank you. To me this is the most concise solution to the problem.
Would you mind adding a changelog entry to swarm/CHANGELOG.md
and bump the crate version in swarm/Cargo.toml
? Don't worry about other version bumps. For now it is fine for CI to be red. I just want to make sure we don't forget the changelog entry and the version bump once we cut v0.53.0.
Thank you for the continued work.
baea9c1
to
91b3074
Compare
Done and rebased to fix merge conflicts. |
This pull request has merge conflicts. Could you please resolve them @b-zee? 🙏 |
No need to resolve. Conflicts are simple. Let's resolve them close to v0.53 release unless difficult conflicts come up. |
154fa1c
to
087bbd2
Compare
Rebased. The changes in master that were supposed to be a minor swarm release of 0.43.4, I have changed to 0.44.0, as this PR requires that if I'm not mistaken. |
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.
Thanks for the update! There seems to be a failing test still :)
This comment was marked as resolved.
This comment was marked as resolved.
b1610c6
to
e43869a
Compare
I'm not sure how to attack that one. I don't think I changed anything dependency wise. Anyhow, just rebased again and that might even fix the |
It seems the only failing one is in
Merging would be preferred! 🙏 See https://github.com/libp2p/rust-libp2p/blob/master/CONTRIBUTING.md#we-squash-merge-pull-requests. |
Pushed the fix for the test. I've taken the liberty to use the |
Sounds good! Can you apply the same fix to the other tests? |
Now that I've come back from vacation I have looked at it proper. Tests are fixed now, sorry for the back and forth. The |
I've restarted that one. It is probably just a rare flake :/ |
Setting this to |
This pull request has merge conflicts. Could you please resolve them @b-zee? 🙏 |
This pull request has merge conflicts. Could you please resolve them @b-zee? 🙏 |
Thanks @thomaseizinger, wasn't sure when this would be merged so didn't want to keep the mergify bot happy 😁 |
Description
Dialing by default uses the condition
Disconnected
, but it seems appropriate to additionally prevent a dial if already dialing. This means a combination ofDisconnected
andNotDialing
.The default is changed to a new variant
DisconnectedAndNotDialing
. This is a breaking change.Related: #4189.
Notes & open questions
Change checklist