Skip to content

Commit

Permalink
Restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingCrowbar committed Sep 19, 2024
1 parent 65bfd64 commit 8079ac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions ydb/core/persqueue/percentile_counter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,6 @@ NKikimr::NPQ::TPercentileCounter CreateSLIDurationCounter(
return NKikimr::NPQ::TPercentileCounter(counters->GetSubgroup("sensor", name), aggr, {}, "Duration", buckets, true, false);
}

TPartitionCounterWrapper::TPartitionCounterWrapper()
: DoSave(false)
, DoReport(false)
{
}

TPartitionCounterWrapper::TPartitionCounterWrapper(NKikimr::NPQ::TMultiCounter&& counter, bool isSupportivePartition, bool doReport) {
Setup(isSupportivePartition, doReport, std::move(counter));
}
Expand Down
6 changes: 3 additions & 3 deletions ydb/core/persqueue/percentile_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ NKikimr::NPQ::TPercentileCounter CreateSLIDurationCounter(

class TPartitionCounterWrapper {
private:
bool DoSave;
bool DoReport;
bool DoSave = false;
bool DoReport = false;
TMaybe<NKikimr::NPQ::TMultiCounter> Counter;
ui64 CounterValue = 0;
bool Inited = false;

public:
TPartitionCounterWrapper();
TPartitionCounterWrapper() = default;
explicit TPartitionCounterWrapper(NKikimr::NPQ::TMultiCounter&& counter, bool isSupportivePartition, bool doReport = true);
void Setup(bool isSupportivePartition, bool doReport, NKikimr::NPQ::TMultiCounter&& counter);
void Inc(ui64 value);
Expand Down

0 comments on commit 8079ac6

Please sign in to comment.