aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine
diff options
context:
space:
mode:
authorhindsight <hindsight@yandex-team.ru>2022-02-10 16:50:06 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:06 +0300
commita76f5e1efe665e1bb125f05ae275b2a6226517d9 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/coroutine
parentfe0f94e19a639b45108b1229c889c445edc7adef (diff)
downloadydb-a76f5e1efe665e1bb125f05ae275b2a6226517d9.tar.gz
Restoring authorship annotation for <hindsight@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/coroutine')
-rw-r--r--library/cpp/coroutine/listener/listen.cpp6
-rw-r--r--library/cpp/coroutine/listener/listen.h14
2 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/coroutine/listener/listen.cpp b/library/cpp/coroutine/listener/listen.cpp
index 45dfe96509..3d4e711d1d 100644
--- a/library/cpp/coroutine/listener/listen.cpp
+++ b/library/cpp/coroutine/listener/listen.cpp
@@ -73,9 +73,9 @@ private:
if (opts.RecvBufSize) {
SetInputBuffer(ListenSocket_, opts.RecvBufSize);
}
- if (opts.ReusePort) {
- SetReusePort(ListenSocket_, opts.ReusePort);
- }
+ if (opts.ReusePort) {
+ SetReusePort(ListenSocket_, opts.ReusePort);
+ }
SetNonBlock(ListenSocket_);
diff --git a/library/cpp/coroutine/listener/listen.h b/library/cpp/coroutine/listener/listen.h
index ae86839b20..3a89cd3ecc 100644
--- a/library/cpp/coroutine/listener/listen.h
+++ b/library/cpp/coroutine/listener/listen.h
@@ -20,7 +20,7 @@ public:
, SendBufSize(0)
, RecvBufSize(0)
, EnableDeferAccept(false)
- , ReusePort(false)
+ , ReusePort(false)
{
}
@@ -49,16 +49,16 @@ public:
}
inline TOptions& SetReusePort(bool reusePort) noexcept {
- ReusePort = reusePort;
-
- return *this;
- }
-
+ ReusePort = reusePort;
+
+ return *this;
+ }
+
size_t ListenQueue;
unsigned SendBufSize;
unsigned RecvBufSize;
bool EnableDeferAccept;
- bool ReusePort;
+ bool ReusePort;
};
class ICallBack {