summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgolear <[email protected]>2023-09-07 11:27:29 +0300
committerdgolear <[email protected]>2023-09-07 12:23:54 +0300
commita8fa678ae08215d0d160cbcbcb8ef1ff66b0dfb5 (patch)
tree26db0a967550e2e134fcad3af96b74e9e314be43
parente20c5bdc2ed7508827a975a589f4cf5dd1faed0c (diff)
YTORM-841: Support user tags in history
-rw-r--r--yt/yt/core/rpc/authentication_identity.cpp12
-rw-r--r--yt/yt/core/rpc/authentication_identity.h3
2 files changed, 1 insertions, 14 deletions
diff --git a/yt/yt/core/rpc/authentication_identity.cpp b/yt/yt/core/rpc/authentication_identity.cpp
index 73687cfdb77..b22880c6373 100644
--- a/yt/yt/core/rpc/authentication_identity.cpp
+++ b/yt/yt/core/rpc/authentication_identity.cpp
@@ -16,18 +16,6 @@ TAuthenticationIdentity::TAuthenticationIdentity(TString user, TString userTag)
, UserTag(std::move(userTag))
{ }
-bool TAuthenticationIdentity::operator==(const TAuthenticationIdentity& other) const
-{
- return
- User == other.User &&
- UserTag == other.UserTag;
-}
-
-bool TAuthenticationIdentity::operator!=(const TAuthenticationIdentity& other) const
-{
- return !(*this == other);
-}
-
void Serialize(const TAuthenticationIdentity& identity, IYsonConsumer* consumer)
{
BuildYsonFluently(consumer)
diff --git a/yt/yt/core/rpc/authentication_identity.h b/yt/yt/core/rpc/authentication_identity.h
index 284ffe90b31..6ee22ed2fec 100644
--- a/yt/yt/core/rpc/authentication_identity.h
+++ b/yt/yt/core/rpc/authentication_identity.h
@@ -15,8 +15,7 @@ struct TAuthenticationIdentity
TAuthenticationIdentity() = default;
explicit TAuthenticationIdentity(TString user, TString userTag = {});
- bool operator==(const TAuthenticationIdentity& other) const;
- bool operator!=(const TAuthenticationIdentity& other) const;
+ bool operator==(const TAuthenticationIdentity& other) const = default;
TString User;
TString UserTag;