@@ -393,6 +393,8 @@ handle_pre_hibernate(State = #state{bq = BQ}) ->
393
393
handle_pre_hibernate (State = # passthrough {bq = BQ , bqs = BQS }) ->
394
394
? passthrough1 (handle_pre_hibernate (BQS )).
395
395
396
+ handle_info (Msg , State = # state {bq = BQ }) ->
397
+ foreach1 (fun (_P , BQSN ) -> BQ :handle_info (Msg , BQSN ) end , State );
396
398
handle_info (Msg , State = # passthrough {bq = BQ , bqs = BQS }) ->
397
399
? passthrough1 (handle_info (Msg , BQS )).
398
400
@@ -408,6 +410,7 @@ msg_rates(#state{bq = BQ, bqss = BQSs}) ->
408
410
end , {0.0 , 0.0 }, BQSs );
409
411
msg_rates (# passthrough {bq = BQ , bqs = BQS }) ->
410
412
BQ :msg_rates (BQS ).
413
+
411
414
info (backing_queue_status , # state {bq = BQ , bqss = BQSs }) ->
412
415
fold0 (fun (P , BQSN , Acc ) ->
413
416
combine_status (P , BQ :info (backing_queue_status , BQSN ), Acc )
@@ -481,9 +484,9 @@ add0(Fun, BQSs) -> fold0(fun (P, BQSN, Acc) -> Acc + Fun(P, BQSN) end, 0, BQSs).
481
484
% % Apply for all states
482
485
foreach1 (Fun , State = # state {bqss = BQSs }) ->
483
486
a (State # state {bqss = foreach1 (Fun , BQSs , [])}).
484
- foreach1 (Fun , [{P , BQSN } | Rest ], BQSAcc ) ->
485
- BQSN1 = Fun (P , BQSN ),
486
- foreach1 (Fun , Rest , [{P , BQSN1 } | BQSAcc ]);
487
+ foreach1 (Fun , [{Priority , BQSN } | Rest ], BQSAcc ) ->
488
+ BQSN1 = Fun (Priority , BQSN ),
489
+ foreach1 (Fun , Rest , [{Priority , BQSN1 } | BQSAcc ]);
487
490
foreach1 (_Fun , [], BQSAcc ) ->
488
491
lists :reverse (BQSAcc ).
489
492
0 commit comments