diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/monlib | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib')
-rw-r--r-- | library/cpp/monlib/counters/timer.h | 8 | ||||
-rw-r--r-- | library/cpp/monlib/dynamic_counters/counters.h | 2 | ||||
-rw-r--r-- | library/cpp/monlib/encode/spack/compression.cpp | 16 | ||||
-rw-r--r-- | library/cpp/monlib/service/service.cpp | 6 | ||||
-rw-r--r-- | library/cpp/monlib/service/service.h | 2 |
5 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/monlib/counters/timer.h b/library/cpp/monlib/counters/timer.h index 03dfb35337..29bdc17a98 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 dc178cfbe0..68787ab8df 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 0d2152fc85..c5c9045521 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 929efbf816..98c314d8d6 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 2f66dddaf8..7a04808092 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; |