aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/monlib
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib')
-rw-r--r--library/cpp/monlib/counters/timer.h8
-rw-r--r--library/cpp/monlib/dynamic_counters/counters.h2
-rw-r--r--library/cpp/monlib/encode/spack/compression.cpp16
-rw-r--r--library/cpp/monlib/service/service.cpp6
-rw-r--r--library/cpp/monlib/service/service.h2
5 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/monlib/counters/timer.h b/library/cpp/monlib/counters/timer.h
index 29bdc17a98..03dfb35337 100644
--- a/library/cpp/monlib/counters/timer.h
+++ b/library/cpp/monlib/counters/timer.h
@@ -2,8 +2,8 @@
#include "histogram.h"
-#include <util/generic/scope.h>
-
+#include <util/generic/scope.h>
+
#include <chrono>
namespace NMonitoring {
@@ -113,8 +113,8 @@ namespace NMonitoring {
using TClock = std::chrono::high_resolution_clock;
auto start = TClock::now();
-
- Y_SCOPE_EXIT(this, start) {
+
+ Y_SCOPE_EXIT(this, start) {
RecordValue(TClock::now() - start);
};
diff --git a/library/cpp/monlib/dynamic_counters/counters.h b/library/cpp/monlib/dynamic_counters/counters.h
index 68787ab8df..dc178cfbe0 100644
--- a/library/cpp/monlib/dynamic_counters/counters.h
+++ b/library/cpp/monlib/dynamic_counters/counters.h
@@ -20,7 +20,7 @@ namespace NMonitoring {
struct ICountableConsumer;
- struct TCountableBase: public TAtomicRefCount<TCountableBase> {
+ struct TCountableBase: public TAtomicRefCount<TCountableBase> {
// Private means that the object must not be serialized unless the consumer
// has explicitly specified this by setting its Visibility to Private.
//
diff --git a/library/cpp/monlib/encode/spack/compression.cpp b/library/cpp/monlib/encode/spack/compression.cpp
index c5c9045521..0d2152fc85 100644
--- a/library/cpp/monlib/encode/spack/compression.cpp
+++ b/library/cpp/monlib/encode/spack/compression.cpp
@@ -3,7 +3,7 @@
#include <util/generic/buffer.h>
#include <util/generic/cast.h>
#include <util/generic/ptr.h>
-#include <util/generic/scope.h>
+#include <util/generic/scope.h>
#include <util/generic/size_literals.h>
#include <util/stream/format.h>
#include <util/stream/output.h>
@@ -285,15 +285,15 @@ namespace NMonitoring {
void FinishAndWriteEmptyFrame() override {
if (Out_) {
- Y_DEFER {
+ Y_DEFER {
Out_ = nullptr;
- };
-
- if (!Uncompressed_.Empty()) {
- WriteCompressedFrame();
+ };
+
+ if (!Uncompressed_.Empty()) {
+ WriteCompressedFrame();
}
-
- WriteEmptyFrame();
+
+ WriteEmptyFrame();
}
}
diff --git a/library/cpp/monlib/service/service.cpp b/library/cpp/monlib/service/service.cpp
index 98c314d8d6..929efbf816 100644
--- a/library/cpp/monlib/service/service.cpp
+++ b/library/cpp/monlib/service/service.cpp
@@ -94,7 +94,7 @@ namespace NMonitoring {
THttpRequestHeader Header;
const THttpHeaders* Headers = nullptr;
THttpURL Url;
- TCgiParameters CgiParams;
+ TCgiParameters CgiParams;
TCgiParameters PostParams;
TBufferOutput PostContent;
const NAddr::IRemoteAddr* RemoteAddr = nullptr;
@@ -223,8 +223,8 @@ namespace NMonitoring {
if (!Start()) {
const auto& opts = THttpServer::Options();
TNetworkAddress addr = opts.Host
- ? TNetworkAddress(opts.Host, opts.Port)
- : TNetworkAddress(opts.Port);
+ ? TNetworkAddress(opts.Host, opts.Port)
+ : TNetworkAddress(opts.Port);
ythrow TSystemError(GetErrorCode()) << addr;
}
}
diff --git a/library/cpp/monlib/service/service.h b/library/cpp/monlib/service/service.h
index 7a04808092..2f66dddaf8 100644
--- a/library/cpp/monlib/service/service.h
+++ b/library/cpp/monlib/service/service.h
@@ -19,7 +19,7 @@ namespace NMonitoring {
}
virtual const char* GetURI() const = 0;
virtual const char* GetPath() const = 0;
- virtual const TCgiParameters& GetParams() const = 0;
+ virtual const TCgiParameters& GetParams() const = 0;
virtual const TCgiParameters& GetPostParams() const = 0;
virtual TStringBuf GetPostContent() const = 0;
virtual HTTP_METHOD GetMethod() const = 0;