Skip to content

Comments

rcmgr: use netip.Prefix as map key instead of string#3264

Merged
sukunrt merged 1 commit intomasterfrom
push-znyytntppqlp
Apr 4, 2025
Merged

rcmgr: use netip.Prefix as map key instead of string#3264
sukunrt merged 1 commit intomasterfrom
push-znyytntppqlp

Conversation

@sukunrt
Copy link
Member

@sukunrt sukunrt commented Apr 3, 2025

We're converting this prefix to string for storing in maps. There's no need to, as netip.prefix is a value type that can be used as a key.

No functional change expected.

We're converting this prefix to string for storing in maps. There's no
need to as prefix is a value type that can be used as a key. 

No functional change expected.
Copy link
Collaborator

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

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

Nice. This was likely a holdover from when I was using the net package instead of netip. Thank you

@sukunrt sukunrt merged commit 8d6ceab into master Apr 4, 2025
9 checks passed
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.

3 participants