aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/dns/cache.cpp
diff options
context:
space:
mode:
authorvmordovin <vmordovin@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit7c7f9bbcf57e15838d15afa94b31d8254b5d7776 (patch)
tree17073f853e6b3a1a95708e8aa0ea12fa42a717e7 /library/cpp/dns/cache.cpp
parent466f96709329ff77ded50177df94d1893a226c00 (diff)
downloadydb-7c7f9bbcf57e15838d15afa94b31d8254b5d7776.tar.gz
Restoring authorship annotation for <vmordovin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/dns/cache.cpp')
-rw-r--r--library/cpp/dns/cache.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/dns/cache.cpp b/library/cpp/dns/cache.cpp
index 05c14e82fc..08ac929a9f 100644
--- a/library/cpp/dns/cache.cpp
+++ b/library/cpp/dns/cache.cpp
@@ -98,14 +98,14 @@ namespace {
//3. replace host to alias, if exist
if (A_.size()) {
TReadGuard guard(LA_);
- TStringBuf names[] = {"*", host};
+ TStringBuf names[] = {"*", host};
for (const auto& name : names) {
- TAliases::const_iterator it = A_.find(name);
+ TAliases::const_iterator it = A_.find(name);
- if (it != A_.end()) {
- host = it->second;
- }
+ if (it != A_.end()) {
+ host = it->second;
+ }
}
}