Skip to content

Commit c32a0c6

Browse files
committed
Slight renaming
1 parent dbda161 commit c32a0c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb/core/jaeger_tracing/sampling_throttling_control_internals.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ bool TSamplingThrottlingControl::TSamplingThrottlingImpl::Throttle(
4242
bool throttle = true;
4343

4444
auto& requestTypeThrottlingRules = Setup.ExternalThrottlingRules[requestType];
45-
if (auto it = requestTypeThrottlingRules.FindPtr(database)) {
46-
for (auto& throttlingRule : *it) {
45+
if (auto databaseThrottlingRules = requestTypeThrottlingRules.FindPtr(database)) {
46+
for (auto& throttlingRule : *databaseThrottlingRules) {
4747
throttle = throttlingRule.Throttler->Throttle() && throttle;
4848
}
4949
}
@@ -54,8 +54,8 @@ TMaybe<ui8> TSamplingThrottlingControl::TSamplingThrottlingImpl::Sample(
5454
size_t requestType, const TMaybe<TString>& database) {
5555
TMaybe<ui8> level;
5656
auto& requestTypeThrottlingRules = Setup.SamplingRules[requestType];
57-
if (auto it = requestTypeThrottlingRules.FindPtr(database)) {
58-
for (auto& samplingRule : *it) {
57+
if (auto databaseThrottlingRules = requestTypeThrottlingRules.FindPtr(database)) {
58+
for (auto& samplingRule : *databaseThrottlingRules) {
5959
if (samplingRule.Sampler.Sample() && !samplingRule.Throttler->Throttle()) {
6060
auto sampledLevel = samplingRule.Level;
6161
if (!level || sampledLevel > *level) {

0 commit comments

Comments
 (0)