aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service/monservice.cpp
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-09 23:39:40 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-09 23:57:14 +0300
commite601ca03f859335d57ecff2e5aa6af234b6052ed (patch)
treede519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/monlib/service/monservice.cpp
parentbbf2b6878af3854815a2c0ecb07a687071787639 (diff)
downloadydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/monlib/service/monservice.cpp')
-rw-r--r--library/cpp/monlib/service/monservice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/monlib/service/monservice.cpp b/library/cpp/monlib/service/monservice.cpp
index d1b9cda1d2..45986a62d2 100644
--- a/library/cpp/monlib/service/monservice.cpp
+++ b/library/cpp/monlib/service/monservice.cpp
@@ -23,7 +23,7 @@ TMonService2::TMonService2(const THttpServerOptions& options, const TString& tit
, IndexMonPage(new TIndexMonPage("", Title))
, AuthProvider_{std::move(auth)}
{
- Y_VERIFY(!!title);
+ Y_ABORT_UNLESS(!!title);
time_t t = time(nullptr);
ctime_r(&t, StartTime);
}
@@ -34,7 +34,7 @@ TMonService2::TMonService2(const THttpServerOptions& options, TSimpleSharedPtr<I
, IndexMonPage(new TIndexMonPage("", Title))
, AuthProvider_{std::move(auth)}
{
- Y_VERIFY(!!title);
+ Y_ABORT_UNLESS(!!title);
time_t t = time(nullptr);
ctime_r(&t, StartTime);
}
@@ -79,7 +79,7 @@ void TMonService2::OutputIndexBody(IOutputStream& out) {
void TMonService2::ServeRequest(IOutputStream& out, const NMonitoring::IHttpRequest& request) {
TString path = request.GetPath();
- Y_VERIFY(path.StartsWith('/'));
+ Y_ABORT_UNLESS(path.StartsWith('/'));
if (AuthProvider_) {
const auto authResult = AuthProvider_->Check(request);