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

optimize generateACLPeerCacheMap #1377

Merged
merged 1 commit into from
Apr 26, 2023
Merged

optimize generateACLPeerCacheMap #1377

merged 1 commit into from
Apr 26, 2023

Conversation

pkrivanec
Copy link
Contributor

Hi,

this is a possible optimization for the problem in issue #1372.
Not the most elegant solution but it should work.

@kradalby
Copy link
Collaborator

I'm happy to get this in if the tests pass, the whole thing need to be rewritten, so elegancy is not my big concern atm.

Please also remove expandACLPeerAddr if it is no longer used.

@pkrivanec
Copy link
Contributor Author

Hi,

the expandACLPeerAddr function is still used in line 170.

@jonathanspw
Copy link
Contributor

jonathanspw commented Apr 26, 2023

Added this patch into the RPMs in 0.22.1-2.

jonathanspw/headscale-rpm@02a711b

https://copr.fedorainfracloud.org/coprs/jonathanspw/headscale/build/5850042/

@codyro
Copy link

codyro commented Apr 26, 2023

I've tested both the proposed changes and @jonathanspw RPM. This seems to resolve this issue.

@kradalby kradalby merged commit d011373 into juanfont:main Apr 26, 2023
@kradalby kradalby mentioned this pull request Apr 27, 2023
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.

4 participants