aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/monlib/service
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/service')
-rw-r--r--library/cpp/monlib/service/mon_service_http_request.cpp2
-rw-r--r--library/cpp/monlib/service/mon_service_http_request.h2
-rw-r--r--library/cpp/monlib/service/monservice.cpp8
-rw-r--r--library/cpp/monlib/service/pages/index_mon_page.cpp8
-rw-r--r--library/cpp/monlib/service/pages/mon_page.cpp2
-rw-r--r--library/cpp/monlib/service/pages/mon_page.h2
-rw-r--r--library/cpp/monlib/service/pages/version_mon_page.cpp2
-rw-r--r--library/cpp/monlib/service/pages/ya.make4
-rw-r--r--library/cpp/monlib/service/service.cpp4
-rw-r--r--library/cpp/monlib/service/service.h4
10 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/monlib/service/mon_service_http_request.cpp b/library/cpp/monlib/service/mon_service_http_request.cpp
index 8abe33f0fb..5d805631d9 100644
--- a/library/cpp/monlib/service/mon_service_http_request.cpp
+++ b/library/cpp/monlib/service/mon_service_http_request.cpp
@@ -9,7 +9,7 @@ IMonHttpRequest::~IMonHttpRequest() {
TMonService2HttpRequest::~TMonService2HttpRequest() {
}
-TString TMonService2HttpRequest::GetServiceTitle() const {
+TString TMonService2HttpRequest::GetServiceTitle() const {
return MonService->GetTitle();
}
diff --git a/library/cpp/monlib/service/mon_service_http_request.h b/library/cpp/monlib/service/mon_service_http_request.h
index 14974f1a20..b4f2f8f0c5 100644
--- a/library/cpp/monlib/service/mon_service_http_request.h
+++ b/library/cpp/monlib/service/mon_service_http_request.h
@@ -44,7 +44,7 @@ namespace NMonitoring {
TMonService2HttpRequest(
IOutputStream* out, const IHttpRequest* httpRequest,
TMonService2* monService, IMonPage* monPage,
- const TString& pathInfo,
+ const TString& pathInfo,
TMonService2HttpRequest* parent)
: Out(out)
, HttpRequest(httpRequest)
diff --git a/library/cpp/monlib/service/monservice.cpp b/library/cpp/monlib/service/monservice.cpp
index fdb7f77c1a..d1b9cda1d2 100644
--- a/library/cpp/monlib/service/monservice.cpp
+++ b/library/cpp/monlib/service/monservice.cpp
@@ -78,7 +78,7 @@ void TMonService2::OutputIndexBody(IOutputStream& out) {
}
void TMonService2::ServeRequest(IOutputStream& out, const NMonitoring::IHttpRequest& request) {
- TString path = request.GetPath();
+ TString path = request.GetPath();
Y_VERIFY(path.StartsWith('/'));
if (AuthProvider_) {
@@ -112,15 +112,15 @@ void TMonService2::Register(TMonPagePtr page) {
IndexMonPage->Register(std::move(page));
}
-TIndexMonPage* TMonService2::RegisterIndexPage(const TString& path, const TString& title) {
+TIndexMonPage* TMonService2::RegisterIndexPage(const TString& path, const TString& title) {
return IndexMonPage->RegisterIndexPage(path, title);
}
-IMonPage* TMonService2::FindPage(const TString& relativePath) {
+IMonPage* TMonService2::FindPage(const TString& relativePath) {
return IndexMonPage->FindPage(relativePath);
}
-TIndexMonPage* TMonService2::FindIndexPage(const TString& relativePath) {
+TIndexMonPage* TMonService2::FindIndexPage(const TString& relativePath) {
return IndexMonPage->FindIndexPage(relativePath);
}
diff --git a/library/cpp/monlib/service/pages/index_mon_page.cpp b/library/cpp/monlib/service/pages/index_mon_page.cpp
index 87cb7e7f99..83ff8b529a 100644
--- a/library/cpp/monlib/service/pages/index_mon_page.cpp
+++ b/library/cpp/monlib/service/pages/index_mon_page.cpp
@@ -36,7 +36,7 @@ void TIndexMonPage::Output(IMonHttpRequest& request) {
break;
}
size_t slash = pathTmp.find_last_of('/');
- Y_VERIFY(slash != TString::npos);
+ Y_VERIFY(slash != TString::npos);
pathTmp = pathTmp.substr(0, slash);
if (!pathTmp) {
break;
@@ -56,7 +56,7 @@ void TIndexMonPage::OutputIndex(IOutputStream& out, bool pathEndsWithSlash) {
for (auto& Page : Pages) {
IMonPage* page = Page.Get();
if (page->IsInIndex()) {
- TString pathToDir = "";
+ TString pathToDir = "";
if (!pathEndsWithSlash) {
pathToDir = this->GetPath() + "/";
}
@@ -94,7 +94,7 @@ TIndexMonPage* TIndexMonPage::RegisterIndexPage(const TString& path, const TStri
return VerifyDynamicCast<TIndexMonPage*>(page);
}
-IMonPage* TIndexMonPage::FindPage(const TString& relativePath) {
+IMonPage* TIndexMonPage::FindPage(const TString& relativePath) {
TGuard<TMutex> g(Mtx);
Y_VERIFY(!relativePath.StartsWith('/'));
@@ -106,7 +106,7 @@ IMonPage* TIndexMonPage::FindPage(const TString& relativePath) {
}
}
-TIndexMonPage* TIndexMonPage::FindIndexPage(const TString& relativePath) {
+TIndexMonPage* TIndexMonPage::FindIndexPage(const TString& relativePath) {
return VerifyDynamicCast<TIndexMonPage*>(FindPage(relativePath));
}
diff --git a/library/cpp/monlib/service/pages/mon_page.cpp b/library/cpp/monlib/service/pages/mon_page.cpp
index 7bf9cce18e..72033b1699 100644
--- a/library/cpp/monlib/service/pages/mon_page.cpp
+++ b/library/cpp/monlib/service/pages/mon_page.cpp
@@ -2,7 +2,7 @@
using namespace NMonitoring;
-IMonPage::IMonPage(const TString& path, const TString& title)
+IMonPage::IMonPage(const TString& path, const TString& title)
: Path(path)
, Title(title)
{
diff --git a/library/cpp/monlib/service/pages/mon_page.h b/library/cpp/monlib/service/pages/mon_page.h
index 1a51dbfa60..e396612bb0 100644
--- a/library/cpp/monlib/service/pages/mon_page.h
+++ b/library/cpp/monlib/service/pages/mon_page.h
@@ -3,7 +3,7 @@
#include <library/cpp/monlib/service/service.h>
#include <library/cpp/monlib/service/mon_service_http_request.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/ptr.h>
namespace NMonitoring {
diff --git a/library/cpp/monlib/service/pages/version_mon_page.cpp b/library/cpp/monlib/service/pages/version_mon_page.cpp
index 01ec97d48f..41e29417da 100644
--- a/library/cpp/monlib/service/pages/version_mon_page.cpp
+++ b/library/cpp/monlib/service/pages/version_mon_page.cpp
@@ -9,7 +9,7 @@ using namespace NMonitoring;
void TVersionMonPage::OutputText(IOutputStream& out, NMonitoring::IMonHttpRequest&) {
const char* version = GetProgramSvnVersion();
out << version;
- if (!TString(version).EndsWith("\n"))
+ if (!TString(version).EndsWith("\n"))
out << "\n";
out << GetBuildInfo() << "\n\n";
out << "linked with malloc: " << NMalloc::MallocInfo().Name << "\n";
diff --git a/library/cpp/monlib/service/pages/ya.make b/library/cpp/monlib/service/pages/ya.make
index 3631168ece..48d44a0838 100644
--- a/library/cpp/monlib/service/pages/ya.make
+++ b/library/cpp/monlib/service/pages/ya.make
@@ -2,8 +2,8 @@ LIBRARY()
OWNER(g:solomon)
-NO_WSHADOW()
-
+NO_WSHADOW()
+
SRCS(
diag_mon_page.cpp
html_mon_page.cpp
diff --git a/library/cpp/monlib/service/service.cpp b/library/cpp/monlib/service/service.cpp
index b4b522939c..929efbf816 100644
--- a/library/cpp/monlib/service/service.cpp
+++ b/library/cpp/monlib/service/service.cpp
@@ -29,7 +29,7 @@ namespace NMonitoring {
out << "HTTP/1.1 400 Invalid url\r\nConnection: Close\r\n\r\n";
return;
}
- TString path = GetPath();
+ TString path = GetPath();
if (!path.StartsWith('/')) {
out << "HTTP/1.1 400 Bad request\r\nConnection: Close\r\n\r\n";
return;
@@ -133,7 +133,7 @@ namespace NMonitoring {
const TCoHttpServer& Parent;
};
- TCoHttpServer::TCoHttpServer(TContExecutor& executor, const TString& bindAddr, TIpPort port, THandler handler)
+ TCoHttpServer::TCoHttpServer(TContExecutor& executor, const TString& bindAddr, TIpPort port, THandler handler)
: Executor(executor)
, Listener(this, &executor)
, Handler(std::move(handler))
diff --git a/library/cpp/monlib/service/service.h b/library/cpp/monlib/service/service.h
index 9272266e50..2f66dddaf8 100644
--- a/library/cpp/monlib/service/service.h
+++ b/library/cpp/monlib/service/service.h
@@ -33,7 +33,7 @@ namespace NMonitoring {
class TCoHttpServer: private TContListener::ICallBack {
public:
// initialize and schedule coroutines for execution
- TCoHttpServer(TContExecutor& executor, const TString& bindAddr, TIpPort port, THandler handler);
+ TCoHttpServer(TContExecutor& executor, const TString& bindAddr, TIpPort port, THandler handler);
void Start();
void Stop();
@@ -54,7 +54,7 @@ namespace NMonitoring {
TContExecutor& Executor;
TContListener Listener;
THandler Handler;
- TString BindAddr;
+ TString BindAddr;
TIpPort Port;
};