diff options
| author | Vlad Yaroslavlev <[email protected]> | 2022-02-10 16:46:25 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:25 +0300 | 
| commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
| tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/monlib/service | |
| parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
Restoring authorship annotation for Vlad Yaroslavlev <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/service')
| -rw-r--r-- | library/cpp/monlib/service/mon_service_http_request.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/monlib/service/mon_service_http_request.h | 2 | ||||
| -rw-r--r-- | library/cpp/monlib/service/monservice.cpp | 8 | ||||
| -rw-r--r-- | library/cpp/monlib/service/pages/index_mon_page.cpp | 8 | ||||
| -rw-r--r-- | library/cpp/monlib/service/pages/mon_page.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/monlib/service/pages/mon_page.h | 2 | ||||
| -rw-r--r-- | library/cpp/monlib/service/pages/version_mon_page.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/monlib/service/pages/ya.make | 4 | ||||
| -rw-r--r-- | library/cpp/monlib/service/service.cpp | 4 | ||||
| -rw-r--r-- | library/cpp/monlib/service/service.h | 4 | 
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 8abe33f0fb6..5d805631d9d 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 14974f1a203..b4f2f8f0c59 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 fdb7f77c1a0..d1b9cda1d21 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 87cb7e7f993..83ff8b529ae 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 7bf9cce18e3..72033b1699a 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 1a51dbfa60e..e396612bb0d 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 01ec97d48ff..41e29417da7 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 3631168eceb..48d44a0838b 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 b4b522939c0..929efbf8162 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 9272266e503..2f66dddaf87 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;      }; | 
