aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/socket.h
diff options
context:
space:
mode:
authormalets <malets@yandex-team.ru>2022-02-10 16:52:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:01 +0300
commit9fb6b07ce98b16ba076a7eaf8d90c335276df153 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/network/socket.h
parent4290f1d64573e159d3a12d374b93a837a68c7869 (diff)
downloadydb-9fb6b07ce98b16ba076a7eaf8d90c335276df153.tar.gz
Restoring authorship annotation for <malets@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network/socket.h')
-rw-r--r--util/network/socket.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/network/socket.h b/util/network/socket.h
index e6e65cdb42..40c8648b40 100644
--- a/util/network/socket.h
+++ b/util/network/socket.h
@@ -77,13 +77,13 @@ static inline void CheckedSetSockOpt(SOCKET s, int level, int optname, T opt, co
}
}
-template <class T>
-static inline void CheckedGetSockOpt(SOCKET s, int level, int optname, T& opt, const char* err) {
- if (GetSockOpt<T>(s, level, optname, opt)) {
- ythrow TSystemError() << "getsockopt() failed for " << err;
- }
-}
-
+template <class T>
+static inline void CheckedGetSockOpt(SOCKET s, int level, int optname, T& opt, const char* err) {
+ if (GetSockOpt<T>(s, level, optname, opt)) {
+ ythrow TSystemError() << "getsockopt() failed for " << err;
+ }
+}
+
static inline void FixIPv6ListenSocket(SOCKET s) {
#if defined(IPV6_V6ONLY)
SetSockOpt(s, IPPROTO_IPV6, IPV6_V6ONLY, 1);