diff options
author | cepera <cepera@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
commit | 99e67b1db27953625d41d1f3eb45ff2517b4d697 (patch) | |
tree | e54d1799e55c6a3c58feb227f2a1f22aa07912c0 /library/cpp/messagebus/locator.cpp | |
parent | 28045de07753ee182fc8e5ca778469d7a7c5bb20 (diff) | |
download | ydb-99e67b1db27953625d41d1f3eb45ff2517b4d697.tar.gz |
Restoring authorship annotation for <cepera@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/locator.cpp')
-rw-r--r-- | library/cpp/messagebus/locator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/messagebus/locator.cpp b/library/cpp/messagebus/locator.cpp index e38a35c426..f95d8e9d85 100644 --- a/library/cpp/messagebus/locator.cpp +++ b/library/cpp/messagebus/locator.cpp @@ -93,7 +93,7 @@ namespace NBus { } else { return memcmp(&SockAddrIpV6(a1)->sin6_addr, &SockAddrIpV6(a2)->sin6_addr, sizeof(in6_addr)) == 0; } - } + } return false; } @@ -104,13 +104,13 @@ namespace NBus { bool TBusLocator::TItem::operator<(const TItem& y) const { const TItem& x = *this; - + if (x.ServiceId == y.ServiceId) { return (x.End < y.End) || ((x.End == y.End) && CompareByHost(x.Addr, y.Addr) < 0); - } + } return x.ServiceId < y.ServiceId; - } - + } + bool TBusLocator::TItem::operator==(const TItem& y) const { return ServiceId == y.ServiceId && Start == y.Start && End == y.End && Addr == y.Addr; } |