aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/dns
diff options
context:
space:
mode:
authoragorodilov <agorodilov@yandex-team.ru>2022-02-10 16:47:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:09 +0300
commitbd5ef432f5cfb1e18851381329d94665a4c22470 (patch)
treeb83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/dns
parent7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (diff)
downloadydb-bd5ef432f5cfb1e18851381329d94665a4c22470.tar.gz
Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/dns')
-rw-r--r--library/cpp/dns/cache.cpp6
-rw-r--r--library/cpp/dns/magic.cpp2
-rw-r--r--library/cpp/dns/magic.h2
-rw-r--r--library/cpp/dns/thread.cpp10
4 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/dns/cache.cpp b/library/cpp/dns/cache.cpp
index 968d9af0e89..05c14e82fce 100644
--- a/library/cpp/dns/cache.cpp
+++ b/library/cpp/dns/cache.cpp
@@ -30,7 +30,7 @@ namespace {
class IDns {
public:
- virtual ~IDns() = default;
+ virtual ~IDns() = default;
virtual const TResolvedHost* Resolve(const TResolveTask&) = 0;
};
@@ -50,7 +50,7 @@ namespace {
class TGlobalCachedDns: public IDns, public TNonCopyable {
public:
- const TResolvedHost* Resolve(const TResolveTask& rt) override {
+ const TResolvedHost* Resolve(const TResolveTask& rt) override {
//2. search host in cache
{
TReadGuard guard(L_);
@@ -144,7 +144,7 @@ namespace {
{
}
- const TResolvedHost* Resolve(const TResolveTask& rt) override {
+ const TResolvedHost* Resolve(const TResolveTask& rt) override {
//1. search in local thread cache
{
TCache::const_iterator it = C_.find(rt.Info);
diff --git a/library/cpp/dns/magic.cpp b/library/cpp/dns/magic.cpp
index 1f75afdd216..b93792146f1 100644
--- a/library/cpp/dns/magic.cpp
+++ b/library/cpp/dns/magic.cpp
@@ -12,7 +12,7 @@ namespace {
{
}
- void Raise() override {
+ void Raise() override {
std::rethrow_exception(E_);
}
diff --git a/library/cpp/dns/magic.h b/library/cpp/dns/magic.h
index c0d1db340de..d52cde0a6c8 100644
--- a/library/cpp/dns/magic.h
+++ b/library/cpp/dns/magic.h
@@ -6,7 +6,7 @@
namespace NDns {
class IError {
public:
- virtual ~IError() = default;
+ virtual ~IError() = default;
virtual void Raise() = 0;
};
diff --git a/library/cpp/dns/thread.cpp b/library/cpp/dns/thread.cpp
index 8f51a4f56a8..8b27d2d527c 100644
--- a/library/cpp/dns/thread.cpp
+++ b/library/cpp/dns/thread.cpp
@@ -65,14 +65,14 @@ namespace {
}
inline ~TThreadedResolver() override {
- Schedule(nullptr);
+ Schedule(nullptr);
for (size_t i = 0; i < T_.size(); ++i) {
T_[i]->Join();
}
{
- TResolveRequest* rr = nullptr;
+ TResolveRequest* rr = nullptr;
while (Q_.Dequeue(&rr)) {
if (rr) {
@@ -100,9 +100,9 @@ namespace {
E_.Signal();
}
- void DoExecute() override {
+ void DoExecute() override {
while (true) {
- TResolveRequest* rr = nullptr;
+ TResolveRequest* rr = nullptr;
while (!Q_.Dequeue(&rr)) {
E_.Wait();
@@ -115,7 +115,7 @@ namespace {
}
}
- Schedule(nullptr);
+ Schedule(nullptr);
}
private: