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_request.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_request.cpp')
-rw-r--r-- | library/cpp/grpc/server/grpc_request.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/grpc/server/grpc_request.cpp b/library/cpp/grpc/server/grpc_request.cpp index d18a32776f..7030992173 100644 --- a/library/cpp/grpc/server/grpc_request.cpp +++ b/library/cpp/grpc/server/grpc_request.cpp @@ -13,7 +13,7 @@ public: void Enqueue(std::function<void()>&& fn, bool urgent) override { with_lock(Mtx_) { if (!UrgentQueue_.empty() || !NormalQueue_.empty()) { - Y_VERIFY(!StreamIsReady_); + Y_ABORT_UNLESS(!StreamIsReady_); } auto& queue = urgent ? UrgentQueue_ : NormalQueue_; if (StreamIsReady_ && queue.empty()) { @@ -30,7 +30,7 @@ public: size_t left = 0; std::function<void()> fn; with_lock(Mtx_) { - Y_VERIFY(!StreamIsReady_); + Y_ABORT_UNLESS(!StreamIsReady_); auto& queue = UrgentQueue_.empty() ? NormalQueue_ : UrgentQueue_; if (queue.empty()) { // Both queues are empty |