diff options
author | uzhas <uzhas@yandex-team.ru> | 2022-02-10 16:47:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:07 +0300 |
commit | 531b7c7053348b9d4c8ff3832d1b8db5a1918125 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/lwtrace | |
parent | 2002caab389ddffd0e7db4d8c4db835fa4c99f83 (diff) | |
download | ydb-531b7c7053348b9d4c8ff3832d1b8db5a1918125.tar.gz |
Restoring authorship annotation for <uzhas@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/lwtrace')
-rw-r--r-- | library/cpp/lwtrace/mon/mon_lwtrace.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/lwtrace/mon/mon_lwtrace.cpp b/library/cpp/lwtrace/mon/mon_lwtrace.cpp index ecfa97e4c3..a61ee9ce22 100644 --- a/library/cpp/lwtrace/mon/mon_lwtrace.cpp +++ b/library/cpp/lwtrace/mon/mon_lwtrace.cpp @@ -1798,7 +1798,7 @@ class TLogSources { private: TTraceCleaner& Cleaner; TInstant Now; - using TLogSourcePtr = std::unique_ptr<ILogSource>; + using TLogSourcePtr = std::unique_ptr<ILogSource>; TMap<TString, TLogSourcePtr> LogSources; public: explicit TLogSources(TTraceCleaner& cleaner, TInstant now = TInstant::Now()) @@ -1809,20 +1809,20 @@ public: void Push(const TString& sid, const TAtomicSharedPtr<NLWTrace::TLogPb>& log) { TLogSourcePtr ls(new TSnapshotLogSource(sid, log)); - LogSources.emplace(ls->GetId(), std::move(ls)); + LogSources.emplace(ls->GetId(), std::move(ls)); } void Push(const TString& id, const NLWTrace::TSession* trace) { TLogSourcePtr ls(new TTraceLogSource(id, trace, Cleaner)); - LogSources.emplace(ls->GetId(), std::move(ls)); + LogSources.emplace(ls->GetId(), std::move(ls)); } template <class TFunc> void ForEach(TFunc& func) { for (auto& kv : LogSources) { - func.Push(kv.second.get()); + func.Push(kv.second.get()); } } @@ -1830,7 +1830,7 @@ public: void ForEach(TFunc& func) const { for (const auto& kv : LogSources) { - func.Push(kv.second.get()); + func.Push(kv.second.get()); } } }; |