Skip to content

Commit de236f5

Browse files
Merge pull request #13088 from rabbitmq/mergify/bp/v4.0.x/pr-13087
Fix return value of `rabbit_priority_queue:delete_crashed/1` (backport #13087)
2 parents 0cd2b3e + e4a1395 commit de236f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/rabbit/src/rabbit_priority_queue.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ delete_crashed(Q) ->
187187
BQ = bq(),
188188
case priorities(Q) of
189189
none -> BQ:delete_crashed(Q);
190-
Ps -> [BQ:delete_crashed(mutate_name(P, Q)) || P <- Ps]
190+
Ps ->
191+
[ok = BQ:delete_crashed(mutate_name(P, Q)) || P <- Ps],
192+
ok
191193
end.
192194

193195
purge(State = #state{bq = BQ}) ->

0 commit comments

Comments
 (0)