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

feat(kad): only dial if not connected AND not dialing #4957

Merged
merged 4 commits into from
Apr 4, 2024

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented Nov 29, 2023

I was looking about our code and noticed we still used the old DialCondition (before the change to not dialling NOR connected as default) and thought I'd double check in libp2p.

These places looked a bit suss and we can perhaps rely on the defaults here?

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

I believe this is fine. Will let @thomaseizinger take a final look.

@thomaseizinger thomaseizinger changed the title fix: use default DialConditions unless explicitly required feat(kad): use default DialConditions unless explicitly required Jan 15, 2024
@thomaseizinger thomaseizinger changed the title feat(kad): use default DialConditions unless explicitly required feat(kad): only dial if not connected AND not dialing Jan 15, 2024
Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

LGTM but needs changelog entry and version bump!

@jxs
Copy link
Member

jxs commented Mar 27, 2024

friendly ping @joshuef

@joshuef joshuef force-pushed the UseDefaultDialConditionsMore branch from 89504b3 to 54d5966 Compare April 4, 2024 00:39
@joshuef
Copy link
Contributor Author

joshuef commented Apr 4, 2024

Ah! forgot all about this. That's updated with master and a changelog entry added now 🙇

Copy link
Contributor

mergify bot commented Apr 4, 2024

This pull request has merge conflicts. Could you please resolve them @joshuef? 🙏

@jxs
Copy link
Member

jxs commented Apr 4, 2024

cargo deny is unrelated, submitted #5293 to address it

@mergify mergify bot merged commit 67ebcde into libp2p:master Apr 4, 2024
71 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants