aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlexplua <lexplua@yandex-team.ru>2022-02-10 16:52:00 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:00 +0300
commit08e953e3af021cf9689f5fed8d522cc43b64913c (patch)
treee4ee8fa94ecabdc6505cb6b3cba07403f00140a0
parentb18de41befeefe861c763a6d0febe61c60ee4f96 (diff)
downloadydb-08e953e3af021cf9689f5fed8d522cc43b64913c.tar.gz
Restoring authorship annotation for <lexplua@yandex-team.ru>. Commit 1 of 2.
-rw-r--r--util/draft/ip.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/draft/ip.h b/util/draft/ip.h
index eb947cd2cd..73cd86a264 100644
--- a/util/draft/ip.h
+++ b/util/draft/ip.h
@@ -5,7 +5,7 @@
#include <util/network/ip.h>
#include <util/str_stl.h>
-#include <util/generic/maybe.h>
+#include <util/generic/maybe.h>
#include <util/generic/variant.h>
#ifdef _unix_
@@ -62,16 +62,16 @@ static inline TIp6 Ip6FromString(const char* ipStr) {
return res;
}
-static inline TMaybe<TIp6> TryParseIp6FromString(const char* ipStr) {
- TIp6 res;
-
- if (inet_pton(AF_INET6, ipStr, &res.Data) == 0) {
- return Nothing();
- }
-
- return res;
-}
-
+static inline TMaybe<TIp6> TryParseIp6FromString(const char* ipStr) {
+ TIp6 res;
+
+ if (inet_pton(AF_INET6, ipStr, &res.Data) == 0) {
+ return Nothing();
+ }
+
+ return res;
+}
+
static inline char* Ip6ToString(const TIp6& ip, char* buf, size_t len) {
if (!inet_ntop(AF_INET6, (void*)&ip.Data, buf, (socklen_t)len)) {
ythrow TSystemError() << "Failed to get ipv6 address string";