Skip to content

Commit 097d5d0

Browse files
committed
Fix style
1 parent 08d7d37 commit 097d5d0

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/client/impl/internal/local_dc_detector/local_dc_detector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ class TLocalDCDetector {
4040
std::string Location_;
4141
};
4242

43-
} // namespace NYdb
43+
} // namespace NYdb

src/client/impl/internal/local_dc_detector/pinger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ TDuration PingEndpoint(const Ydb::Discovery::EndpointInfo& endpoint) {
1414
}
1515
}
1616

17-
} // namespace NYdb
17+
} // namespace NYdb

src/client/impl/internal/local_dc_detector/pinger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ static constexpr std::uint32_t PING_TIMEOUT_SECONDS = 5;
1212

1313
TDuration PingEndpoint(const Ydb::Discovery::EndpointInfo& endpoint);
1414

15-
} // namespace NYdb
15+
} // namespace NYdb

src/client/table/impl/table_client.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,10 @@ void TTableClient::TImpl::StartPeriodicHostScanTask() {
229229
const auto balancingPolicy = strongClient->DbDriverState_->GetBalancingPolicyType();
230230

231231
// Try to find any host at foreign locations if prefer local dc
232-
const ui64 foreignHost = (balancingPolicy == TBalancingPolicy::TImpl::EPolicyType::UsePreferableLocation || balancingPolicy == TBalancingPolicy::TImpl::EPolicyType::UseDetectedLocalDC) ?
233-
ScanForeignLocations(strongClient) : 0;
232+
const ui64 foreignHost =
233+
balancingPolicy == TBalancingPolicy::TImpl::EPolicyType::UsePreferableLocation ||
234+
balancingPolicy == TBalancingPolicy::TImpl::EPolicyType::UseDetectedLocalDC ?
235+
ScanForeignLocations(strongClient) : 0;
234236

235237
std::unordered_map<ui64, size_t> hostMap;
236238

0 commit comments

Comments
 (0)