Skip to content

Commit 7a2efd1

Browse files
committed
Replace Y_ABORT_UNLESS with FailWithError in channel spilling actor (#20583)
(cherry picked from commit cbac0bf)
1 parent ac0294d commit 7a2efd1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ydb/library/yql/dq/actors/spilling/channel_storage_actor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ class TDqChannelStorageActor : public IDqChannelStorageActor,
8888
}
8989

9090
void SendInternal(const TActorId& recipient, IEventBase* ev, TEventFlags flags = IEventHandle::FlagTrackDelivery) {
91-
bool isSent = Send(recipient, ev, flags);
92-
Y_ABORT_UNLESS(isSent, "Event was not sent");
91+
if (!Send(recipient, ev, flags)) FailWithError("Event was not sent");
9392
}
9493

9594
private:

0 commit comments

Comments
 (0)