diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:39:40 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:57:14 +0300 |
commit | e601ca03f859335d57ecff2e5aa6af234b6052ed (patch) | |
tree | de519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/grpc/server/grpc_server.cpp | |
parent | bbf2b6878af3854815a2c0ecb07a687071787639 (diff) | |
download | ydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/grpc/server/grpc_server.cpp')
-rw-r--r-- | library/cpp/grpc/server/grpc_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/grpc/server/grpc_server.cpp b/library/cpp/grpc/server/grpc_server.cpp index 9ba7d29659..a38d4c9da6 100644 --- a/library/cpp/grpc/server/grpc_server.cpp +++ b/library/cpp/grpc/server/grpc_server.cpp @@ -44,7 +44,7 @@ TGRpcServer::TGRpcServer(const TServerOptions& opts) {} TGRpcServer::~TGRpcServer() { - Y_VERIFY(Ts.empty()); + Y_ABORT_UNLESS(Ts.empty()); Services_.clear(); } @@ -193,7 +193,7 @@ void TGRpcServer::Stop() { if (Server_) { i64 sec = Options_.GRpcShutdownDeadline.Seconds(); - Y_VERIFY(Options_.GRpcShutdownDeadline.NanoSecondsOfSecond() <= Max<i32>()); + Y_ABORT_UNLESS(Options_.GRpcShutdownDeadline.NanoSecondsOfSecond() <= Max<i32>()); i32 nanosecOfSec = Options_.GRpcShutdownDeadline.NanoSecondsOfSecond(); Server_->Shutdown(gpr_timespec{sec, nanosecOfSec, GPR_TIMESPAN}); } |