diff options
author | Alexander Smirnov <alex@ydb.tech> | 2025-02-26 00:51:39 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2025-02-26 00:51:39 +0000 |
commit | ad6fe7242a3a1d2ad0c44f014f4cbb5d681b5ac7 (patch) | |
tree | cc86cca49c006bd524619414aaf3ea95ea712566 /library/cpp | |
parent | 38b28a98382a639bdc96fa961609b2b815572d7f (diff) | |
parent | 15bb28e76714e036e8c55cf06179b3a870aa6e69 (diff) | |
download | ydb-ad6fe7242a3a1d2ad0c44f014f4cbb5d681b5ac7.tar.gz |
Merge branch 'rightlib' into merge-libs-250226-0050
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/unified_agent_client/client.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/unified_agent_client/client.h b/library/cpp/unified_agent_client/client.h index e58ffc8b116..5870c132da4 100644 --- a/library/cpp/unified_agent_client/client.h +++ b/library/cpp/unified_agent_client/client.h @@ -142,8 +142,8 @@ namespace NUnifiedAgent { // in library, in Unified Agent and in other systems that respect ordering (e.g., Logbroker) // // Default: generated automatically by Unified Agent. - TSessionParameters& SetSessionId(const TString& sessionId) { - SessionId = sessionId; + TSessionParameters& SetSessionId(TString sessionId) { + SessionId = std::move(sessionId); return *this; } @@ -151,8 +151,8 @@ namespace NUnifiedAgent { // Can be used by agent filters and outputs for validation/routing/enrichment/etc. // // Default: not set - TSessionParameters& SetMeta(const THashMap<TString, TString>& meta) { - Meta = meta; + TSessionParameters& SetMeta(THashMap<TString, TString> meta) { + Meta = std::move(meta); return *this; } |