diff options
author | jimmy <jimmy@yandex-team.ru> | 2022-02-10 16:49:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:38 +0300 |
commit | affdafdb1fc09bf0bfc384355143ee6db9e90046 (patch) | |
tree | da80bda4720043db2e41dfd1c7fd04de32021fd3 /library/cpp/messagebus | |
parent | 4e4faf8d95a4916a49f6674f3ff50e13799fbaa6 (diff) | |
download | ydb-affdafdb1fc09bf0bfc384355143ee6db9e90046.tar.gz |
Restoring authorship annotation for <jimmy@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus')
-rw-r--r-- | library/cpp/messagebus/config/netaddr.cpp | 14 | ||||
-rw-r--r-- | library/cpp/messagebus/config/netaddr.h | 4 | ||||
-rw-r--r-- | library/cpp/messagebus/locator.cpp | 2 | ||||
-rw-r--r-- | library/cpp/messagebus/message.cpp | 4 | ||||
-rw-r--r-- | library/cpp/messagebus/oldmodule/startsession.cpp | 2 |
5 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/messagebus/config/netaddr.cpp b/library/cpp/messagebus/config/netaddr.cpp index 962ac538e2..239c178473 100644 --- a/library/cpp/messagebus/config/netaddr.cpp +++ b/library/cpp/messagebus/config/netaddr.cpp @@ -94,7 +94,7 @@ namespace NBus { } else if (!addr) { addr.Reset(new TNetworkAddressRef(na, &*it)); } - } + } } return addr; } @@ -112,7 +112,7 @@ namespace NBus { TNetworkAddress na(TString(hostPort, portStr), port); return MakeAddress(na, requireVersion, preferVersion); } - } + } TNetAddr::TNetAddr(const char* hostPort, EIpVersion requireVersion /*= EIP_VERSION_ANY*/, EIpVersion preferVersion /*= EIP_VERSION_ANY*/) : Ptr(MakeAddress(hostPort, requireVersion, preferVersion)) @@ -120,15 +120,15 @@ namespace NBus { if (!Ptr) { ythrow TNetAddr::TError() << "cannot resolve " << hostPort << " into " << Describe(requireVersion); } - } + } TNetAddr::TNetAddr(TStringBuf host, int port, EIpVersion requireVersion /*= EIP_VERSION_ANY*/, EIpVersion preferVersion /*= EIP_VERSION_ANY*/) : Ptr(MakeAddress(host, port, requireVersion, preferVersion)) { if (!Ptr) { ythrow TNetAddr::TError() << "cannot resolve " << host << ":" << port << " into " << Describe(requireVersion); - } - } + } + } TNetAddr::TNetAddr(const TNetworkAddress& na, EIpVersion requireVersion /*= EIP_VERSION_ANY*/, EIpVersion preferVersion /*= EIP_VERSION_ANY*/) : Ptr(MakeAddress(na, requireVersion, preferVersion)) @@ -141,11 +141,11 @@ namespace NBus { TNetAddr::TNetAddr(const TNetworkAddress& na, const TAddrInfo& ai) : Ptr(new TNetworkAddressRef(na, ai)) { - } + } const sockaddr* TNetAddr::Addr() const { return Ptr->Addr(); - } + } socklen_t TNetAddr::Len() const { return Ptr->Len(); diff --git a/library/cpp/messagebus/config/netaddr.h b/library/cpp/messagebus/config/netaddr.h index b79c0cc355..395e3bcae6 100644 --- a/library/cpp/messagebus/config/netaddr.h +++ b/library/cpp/messagebus/config/netaddr.h @@ -25,8 +25,8 @@ namespace NBus { return false; } return true; - } - + } + const char* ToCString(EIpVersion); int ToAddrFamily(EIpVersion); diff --git a/library/cpp/messagebus/locator.cpp b/library/cpp/messagebus/locator.cpp index e38a35c426..1b2fc635de 100644 --- a/library/cpp/messagebus/locator.cpp +++ b/library/cpp/messagebus/locator.cpp @@ -395,7 +395,7 @@ namespace NBus { } int TBusLocator::Register(TBusService service, TBusKey start, TBusKey end, const TNetAddr& addr) { - TGuard<TMutex> G(Lock); + TGuard<TMutex> G(Lock); TServiceId serviceId = GetServiceId(service); TItems::const_iterator it; diff --git a/library/cpp/messagebus/message.cpp b/library/cpp/messagebus/message.cpp index bfa7ed8e9b..ae83c82e0f 100644 --- a/library/cpp/messagebus/message.cpp +++ b/library/cpp/messagebus/message.cpp @@ -171,8 +171,8 @@ namespace NBus { } else { GetHeader()->FlagsInternal &= ~(MESSAGE_COMPRESS_RESPONSE); } - } - + } + TString TBusIdentity::ToString() const { TStringStream ss; ss << "msg-id=" << MessageId diff --git a/library/cpp/messagebus/oldmodule/startsession.cpp b/library/cpp/messagebus/oldmodule/startsession.cpp index 7c38801d62..e65df59e62 100644 --- a/library/cpp/messagebus/oldmodule/startsession.cpp +++ b/library/cpp/messagebus/oldmodule/startsession.cpp @@ -48,7 +48,7 @@ namespace NBus { } void TBusStarter::Starter() { - TGuard<TMutex> g(ExitLock); + TGuard<TMutex> g(ExitLock); while (!Exiting) { TAutoPtr<TBusMessage> empty(new TBusMessage(0)); |