aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/mon/mon_lwtrace.cpp
diff options
context:
space:
mode:
authoruzhas <uzhas@yandex-team.ru>2022-02-10 16:47:06 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:06 +0300
commit2002caab389ddffd0e7db4d8c4db835fa4c99f83 (patch)
tree9d3448d5ba97edddf88aa69bcb138e88286e8176 /library/cpp/lwtrace/mon/mon_lwtrace.cpp
parent17d51d51855dc3ed663d0e31fa75d3ff5ab80702 (diff)
downloadydb-2002caab389ddffd0e7db4d8c4db835fa4c99f83.tar.gz
Restoring authorship annotation for <uzhas@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lwtrace/mon/mon_lwtrace.cpp')
-rw-r--r--library/cpp/lwtrace/mon/mon_lwtrace.cpp10
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 a61ee9ce22..ecfa97e4c3 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());
}
}
};