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

Cyphal/UDP: remove the default local_node_id #337

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

songmeo
Copy link

@songmeo songmeo commented May 3, 2024

addresses #323

Copy link
Member

@pavel-kirienko pavel-kirienko left a comment

Choose a reason for hiding this comment

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

Please bump the patch version. See CONTRIBUTING.md for details.

@@ -64,7 +64,7 @@ class UDPTransport(pycyphal.transport.Transport):
def __init__(
self,
local_ip_address: IPAddress | str,
local_node_id: typing.Optional[int] = 0,
local_node_id: typing.Optional[int] = None,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
local_node_id: typing.Optional[int] = None,
local_node_id: typing.Optional[int],

I originally wrote None in the issue but then realized that the default should be absent for consistency with the other transports, and updated the issue accordingly.

Copy link
Author

Choose a reason for hiding this comment

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

should I bump version to 1.18.1?

Copy link
Member

Choose a reason for hiding this comment

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

Yes please.

@pavel-kirienko pavel-kirienko changed the title change local_node_id from 0 to None Cyphal/UDP: change local_node_id from 0 to None May 3, 2024
@pavel-kirienko pavel-kirienko changed the title Cyphal/UDP: change local_node_id from 0 to None Cyphal/UDP: remove the default local_node_id May 3, 2024
@pavel-kirienko
Copy link
Member

Please also fix the failed test affected by this change

@pavel-kirienko
Copy link
Member

(history rewrite is not necessary because all commits will be squashed upon merging)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cyphal/UDP: the default value of local_node_id should be absent, not zero
2 participants