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

Fix autogen, conflict between accounts and trim code. #16

Merged
merged 3 commits into from
Jun 22, 2021

Conversation

sbs2001
Copy link
Contributor

@sbs2001 sbs2001 commented Jun 22, 2021

Autogen : Don't lint the base config when generating config. This was causing the error about missing account id.

Conflict between account workers : Two workers having access to some common zone, would try to delete and create the same rule at same time. This is fixed by a waitgroup. All workers wait for each other till the cleanup process and then together move on to create rules.

Trim Code : The Run method of worker is shortened via magic of first class functions

sbs2001 added 3 commits June 22, 2021 10:13
Signed-off-by: Shivam Sandbhor <shivam@crowdsec.net>
Signed-off-by: Shivam Sandbhor <shivam@crowdsec.net>
Signed-off-by: Shivam Sandbhor <shivam@crowdsec.net>
@sbs2001 sbs2001 requested a review from AlteredCoder June 22, 2021 07:06
Copy link
Contributor

@buixor buixor left a comment

Choose a reason for hiding this comment

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

lgtm

@sbs2001 sbs2001 merged commit 84f3d76 into crowdsecurity:main Jun 22, 2021
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