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: remove stats code that could cause panic #1831

Merged
merged 1 commit into from Jan 11, 2024

Conversation

xemxx
Copy link
Contributor

@xemxx xemxx commented Jan 10, 2024

What type of PR is this?

fix bug

What this PR does / why we need it:

这段代码引用了一个nil的变量的方法,可能导致程序panic

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

可能需要把 astats 变量提升到 AlertRuleWorker 上来实现完整的指标统计

@710leo 710leo changed the title fix: remove code that could cause panic fix: remove stats code that could cause panic Jan 11, 2024
@710leo 710leo merged commit f7a40b7 into ccfos:main Jan 11, 2024
@xemxx xemxx deleted the fix-panic-code branch January 11, 2024 03:06
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.

None yet

2 participants