aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/remote_client_session_semaphore.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/messagebus/remote_client_session_semaphore.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/messagebus/remote_client_session_semaphore.cpp')
-rw-r--r--library/cpp/messagebus/remote_client_session_semaphore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/messagebus/remote_client_session_semaphore.cpp b/library/cpp/messagebus/remote_client_session_semaphore.cpp
index f877ed4257..ad37fae87c 100644
--- a/library/cpp/messagebus/remote_client_session_semaphore.cpp
+++ b/library/cpp/messagebus/remote_client_session_semaphore.cpp
@@ -12,12 +12,12 @@ TRemoteClientSessionSemaphore::TRemoteClientSessionSemaphore(TAtomicBase limit,
, Current(0)
, StopSignal(0)
{
- Y_VERIFY(limit > 0, "limit must be > 0");
+ Y_ABORT_UNLESS(limit > 0, "limit must be > 0");
Y_UNUSED(Name);
}
TRemoteClientSessionSemaphore::~TRemoteClientSessionSemaphore() {
- Y_VERIFY(AtomicGet(Current) == 0);
+ Y_ABORT_UNLESS(AtomicGet(Current) == 0);
}
bool TRemoteClientSessionSemaphore::TryAcquire() {