aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/grpc
diff options
context:
space:
mode:
authormonster <monster@yandex-team.ru>2022-02-10 16:47:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:19 +0300
commitdd76ae1f6213d065375ab296699f764faafbe5bd (patch)
tree075a4553d0011d8f92752c0891794febb15912cf /library/cpp/grpc
parentf02a874a7290593efbe4b3aeae69a04b46c1cc86 (diff)
downloadydb-dd76ae1f6213d065375ab296699f764faafbe5bd.tar.gz
Restoring authorship annotation for <monster@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/grpc')
-rw-r--r--library/cpp/grpc/server/grpc_counters.h18
-rw-r--r--library/cpp/grpc/server/grpc_request.h8
-rw-r--r--library/cpp/grpc/server/grpc_request_base.h6
-rw-r--r--library/cpp/grpc/server/grpc_server.cpp2
4 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/grpc/server/grpc_counters.h b/library/cpp/grpc/server/grpc_counters.h
index 0b6c36c84c..29600c7d96 100644
--- a/library/cpp/grpc/server/grpc_counters.h
+++ b/library/cpp/grpc/server/grpc_counters.h
@@ -18,13 +18,13 @@ struct ICounterBlock : public TThrRefBase {
virtual void CountRequestsWithoutDatabase() {}
virtual void CountRequestsWithoutToken() {}
virtual void CountRequestWithoutTls() {}
-
- virtual TIntrusivePtr<ICounterBlock> Clone() { return this; }
- virtual void UseDatabase(const TString& database) { Y_UNUSED(database); }
+
+ virtual TIntrusivePtr<ICounterBlock> Clone() { return this; }
+ virtual void UseDatabase(const TString& database) { Y_UNUSED(database); }
};
-using ICounterBlockPtr = TIntrusivePtr<ICounterBlock>;
-
+using ICounterBlockPtr = TIntrusivePtr<ICounterBlock>;
+
class TCounterBlock final : public ICounterBlock {
NMonitoring::TDynamicCounters::TCounterPtr TotalCounter;
NMonitoring::TDynamicCounters::TCounterPtr InflyCounter;
@@ -113,10 +113,10 @@ public:
}
}
- ICounterBlockPtr Clone() override {
- return this;
- }
-
+ ICounterBlockPtr Clone() override {
+ return this;
+ }
+
void Update() {
if (Percentile) {
RequestHistMs.Update();
diff --git a/library/cpp/grpc/server/grpc_request.h b/library/cpp/grpc/server/grpc_request.h
index 5bd8d3902b..aeb8d31f29 100644
--- a/library/cpp/grpc/server/grpc_request.h
+++ b/library/cpp/grpc/server/grpc_request.h
@@ -224,10 +224,10 @@ public:
return &Arena_;
}
- void UseDatabase(const TString& database) override {
- Counters_->UseDatabase(database);
- }
-
+ void UseDatabase(const TString& database) override {
+ Counters_->UseDatabase(database);
+ }
+
private:
void Clone() {
if (!Server_->IsShuttingDown()) {
diff --git a/library/cpp/grpc/server/grpc_request_base.h b/library/cpp/grpc/server/grpc_request_base.h
index fcfce1c181..c6d64ed648 100644
--- a/library/cpp/grpc/server/grpc_request_base.h
+++ b/library/cpp/grpc/server/grpc_request_base.h
@@ -90,9 +90,9 @@ public:
//! The metadata will be send at the time of rpc finish
virtual void AddTrailingMetadata(const TString& key, const TString& value) = 0;
- //! Use validated database name for counters
- virtual void UseDatabase(const TString& database) = 0;
-
+ //! Use validated database name for counters
+ virtual void UseDatabase(const TString& database) = 0;
+
// Streaming part
//! Set callback. The callback will be called when response deliverid to the client
diff --git a/library/cpp/grpc/server/grpc_server.cpp b/library/cpp/grpc/server/grpc_server.cpp
index 7437b7a8f5..579ee24f06 100644
--- a/library/cpp/grpc/server/grpc_server.cpp
+++ b/library/cpp/grpc/server/grpc_server.cpp
@@ -147,7 +147,7 @@ void TGRpcServer::Start() {
Server_ = builder.BuildAndStart();
if (!Server_) {
- ythrow yexception() << "can't start grpc server on " << server_address;
+ ythrow yexception() << "can't start grpc server on " << server_address;
}
size_t index = 0;