aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/messqueue.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/messqueue.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/messqueue.cpp')
-rw-r--r--library/cpp/messagebus/messqueue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/messagebus/messqueue.cpp b/library/cpp/messagebus/messqueue.cpp
index 3474d62705..85baa3c383 100644
--- a/library/cpp/messagebus/messqueue.cpp
+++ b/library/cpp/messagebus/messqueue.cpp
@@ -169,7 +169,7 @@ void TBusMessageQueue::Add(TIntrusivePtr<TBusSessionImpl> session) {
void TBusMessageQueue::Remove(TBusSession* session) {
TGuard<TMutex> scope(Lock);
TList<TIntrusivePtr<TBusSessionImpl>>::iterator it = std::find(Sessions.begin(), Sessions.end(), session);
- Y_VERIFY(it != Sessions.end(), "do not destroy session twice");
+ Y_ABORT_UNLESS(it != Sessions.end(), "do not destroy session twice");
Sessions.erase(it);
}
@@ -185,7 +185,7 @@ void TBusMessageQueue::DestroyAllSessions() {
}
for (auto& session : sessions) {
- Y_VERIFY(session->IsDown(), "Session must be shut down prior to queue shutdown");
+ Y_ABORT_UNLESS(session->IsDown(), "Session must be shut down prior to queue shutdown");
}
}