aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorIlnaz Nizametdinov <i.nizametdinov@gmail.com>2022-02-10 16:48:00 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:00 +0300
commit86c3bbf7131fc3929bdb31e29fdf016038d68594 (patch)
treea6b01cf8492a661e63d723c854d78b437d548314 /library
parent63966679b69e4dc92ff420dacaed6e476c6c8412 (diff)
downloadydb-86c3bbf7131fc3929bdb31e29fdf016038d68594.tar.gz
Restoring authorship annotation for Ilnaz Nizametdinov <i.nizametdinov@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library')
-rw-r--r--library/cpp/actors/dnscachelib/dnscache.cpp16
-rw-r--r--library/cpp/actors/testlib/test_runtime.cpp2
-rw-r--r--library/cpp/monlib/service/pages/templates.cpp6
-rw-r--r--library/cpp/monlib/service/pages/templates.h26
4 files changed, 25 insertions, 25 deletions
diff --git a/library/cpp/actors/dnscachelib/dnscache.cpp b/library/cpp/actors/dnscachelib/dnscache.cpp
index 649339ddb2..60c8f9452c 100644
--- a/library/cpp/actors/dnscachelib/dnscache.cpp
+++ b/library/cpp/actors/dnscachelib/dnscache.cpp
@@ -76,7 +76,7 @@ TIpHost TDnsCache::Get(const TString& hostname) {
const THost& addr = Resolve(hostname, AF_INET);
- TGuard<TMutex> lock(CacheMtx);
+ TGuard<TMutex> lock(CacheMtx);
if (addr.AddrsV4.empty()) {
return TIpHost(-1);
}
@@ -91,7 +91,7 @@ NAddr::IRemoteAddrPtr TDnsCache::GetAddr(
if (family != AF_INET && AllowIpV6) {
const THost& addr = Resolve(hostname, AF_INET6, cacheOnly);
- TGuard<TMutex> lock(CacheMtx);
+ TGuard<TMutex> lock(CacheMtx);
if (!addr.AddrsV6.empty()) {
struct sockaddr_in6 sin6;
Zero(sin6);
@@ -106,7 +106,7 @@ NAddr::IRemoteAddrPtr TDnsCache::GetAddr(
if (family != AF_INET6 && AllowIpV4) {
const THost& addr = Resolve(hostname, AF_INET, cacheOnly);
- TGuard<TMutex> lock(CacheMtx);
+ TGuard<TMutex> lock(CacheMtx);
if (!addr.AddrsV4.empty()) {
return MakeHolder<NAddr::TIPv4Addr>(TIpAddress(addr.AddrsV4.front(), port));
}
@@ -121,8 +121,8 @@ void TDnsCache::GetAllAddresses(
TVector<NAddr::IRemoteAddrPtr>& addrs) {
if (AllowIpV4) {
const THost& addr4 = Resolve(hostname, AF_INET);
-
- TGuard<TMutex> lock(CacheMtx);
+
+ TGuard<TMutex> lock(CacheMtx);
for (size_t i = 0; i < addr4.AddrsV4.size(); i++) {
addrs.push_back(MakeHolder<NAddr::TIPv4Addr>(TIpAddress(addr4.AddrsV4[i], 0)));
}
@@ -130,12 +130,12 @@ void TDnsCache::GetAllAddresses(
if (AllowIpV6) {
const THost& addr6 = Resolve(hostname, AF_INET6);
-
+
struct sockaddr_in6 sin6;
Zero(sin6);
sin6.sin6_family = AF_INET6;
-
- TGuard<TMutex> lock(CacheMtx);
+
+ TGuard<TMutex> lock(CacheMtx);
for (size_t i = 0; i < addr6.AddrsV6.size(); i++) {
sin6.sin6_addr = addr6.AddrsV6[i];
diff --git a/library/cpp/actors/testlib/test_runtime.cpp b/library/cpp/actors/testlib/test_runtime.cpp
index 6fa25b9965..d8ac88f3ae 100644
--- a/library/cpp/actors/testlib/test_runtime.cpp
+++ b/library/cpp/actors/testlib/test_runtime.cpp
@@ -377,7 +377,7 @@ namespace NActors {
TlsActivationContext = &ctx;
recipientActor->Receive(ev, ctx);
TlsActivationContext = prevTlsActivationContext;
- // we expect the logger to never die in tests
+ // we expect the logger to never die in tests
}
}
} else {
diff --git a/library/cpp/monlib/service/pages/templates.cpp b/library/cpp/monlib/service/pages/templates.cpp
index ece12bea71..5c2017bf5e 100644
--- a/library/cpp/monlib/service/pages/templates.cpp
+++ b/library/cpp/monlib/service/pages/templates.cpp
@@ -28,8 +28,8 @@ namespace NMonitoring {
extern const char ListTag[] = "li";
extern const char UListTag[] = "ul";
extern const char OListTag[] = "ol";
- extern const char DListTag[] = "dl";
- extern const char DTermTag[] = "dt";
- extern const char DDescTag[] = "dd";
+ extern const char DListTag[] = "dl";
+ extern const char DTermTag[] = "dt";
+ extern const char DDescTag[] = "dd";
}
diff --git a/library/cpp/monlib/service/pages/templates.h b/library/cpp/monlib/service/pages/templates.h
index b4656f059f..fa6c986dca 100644
--- a/library/cpp/monlib/service/pages/templates.h
+++ b/library/cpp/monlib/service/pages/templates.h
@@ -78,13 +78,13 @@
#define OL() TAG(TOLIST)
#define OL_CLASS(cls) TAG_CLASS(TOLIST, cls)
-#define DL() TAG(DLIST)
-#define DL_CLASS(cls) TAG_CLASS(DLIST, cls)
-#define DT() TAG(DTERM)
-#define DT_CLASS(cls) TAG_CLASS(DTERM, cls)
-#define DD() TAG(DDESC)
-#define DD_CLASS(cls) TAG_CLASS(DDESC, cls)
-
+#define DL() TAG(DLIST)
+#define DL_CLASS(cls) TAG_CLASS(DLIST, cls)
+#define DT() TAG(DTERM)
+#define DT_CLASS(cls) TAG_CLASS(DTERM, cls)
+#define DD() TAG(DDESC)
+#define DD_CLASS(cls) TAG_CLASS(DDESC, cls)
+
#define CAPTION() TAG(TCaption)
#define CAPTION_CLASS(cls) CAPTION_CLASS(TCaption, cls)
@@ -231,9 +231,9 @@ namespace NMonitoring {
extern const char ListTag[3];
extern const char UListTag[3];
extern const char OListTag[3];
- extern const char DListTag[3];
- extern const char DTermTag[3];
- extern const char DDescTag[3];
+ extern const char DListTag[3];
+ extern const char DTermTag[3];
+ extern const char DDescTag[3];
typedef TTag<HtmlTag> THtml;
typedef TTag<HeadTag> THead;
@@ -262,7 +262,7 @@ namespace NMonitoring {
typedef TTag<ListTag> TLIST;
typedef TTag<UListTag> TULIST;
typedef TTag<OListTag> TOLIST;
- typedef TTag<DListTag> DLIST;
- typedef TTag<DTermTag> DTERM;
- typedef TTag<DDescTag> DDESC;
+ typedef TTag<DListTag> DLIST;
+ typedef TTag<DTermTag> DTERM;
+ typedef TTag<DDescTag> DDESC;
}