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

Compile patterns once #57

Merged
merged 4 commits into from
Nov 20, 2021
Merged

Compile patterns once #57

merged 4 commits into from
Nov 20, 2021

Conversation

carlmontanari
Copy link
Contributor

follow up from #56

wrapped all the singleton-y pattern compiling pieces with sync.Once and added a test to make sure that the channel auth patterns fetcher wont cause race condition. had to export some stuff for the patterns business to test but seems like thats not the worst thing ever.

@hellt @networkop does this look reasonable to you gents?

cfg/aristaeos.go Outdated Show resolved Hide resolved
@hellt
Copy link
Collaborator

hellt commented Nov 20, 2021

lgtm

Copy link
Contributor

@networkop networkop left a comment

Choose a reason for hiding this comment

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

lgtm

@carlmontanari
Copy link
Contributor Author

Awesome! Thank you both very much! Thanks @networkop for raising this and the help!

Carl

@carlmontanari carlmontanari merged commit 5179cd8 into main Nov 20, 2021
@carlmontanari carlmontanari deleted the compile_patterns_once branch November 20, 2021 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants