-
Notifications
You must be signed in to change notification settings - Fork 606
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
YQL-17542 clarify sending stats condition in compute actor #1015
YQL-17542 clarify sending stats condition in compute actor #1015
Conversation
pr over contrib: https://a.yandex-team.ru/review/5162297/details |
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 6666344.
🔴 linux-x86_64-release-asan: some tests FAILED for commit 6666344.
|
switch(condition) { | ||
case ESendStats::IfPossible: | ||
if (dT < RuntimeSettings.ReportStatsSettings->MinInterval) { | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Дело вкуса конечно. Я бы вместо return дернул функцию, которая непосредственно делает отсылку статистики (тот кусок кода что ниже). Тогда бы условия внутри switch читались проще имхо.
No description provided.