@@ -462,7 +462,7 @@ is_duplicate(Message = #basic_message { id = MsgId },
462
462
% % immediately after calling is_duplicate). The msg is
463
463
% % invalid. We will not see this again, nor will we be
464
464
% % further involved in confirming this message, so erase.
465
- {true , State # state { seen_status = maps :remove (MsgId , SS ) }};
465
+ {{ true , drop } , State # state { seen_status = maps :remove (MsgId , SS ) }};
466
466
{ok , Disposition }
467
467
when Disposition =:= confirmed
468
468
% % It got published when we were a slave via gm, and
@@ -477,8 +477,8 @@ is_duplicate(Message = #basic_message { id = MsgId },
477
477
% % Message was discarded while we were a slave. Confirm now.
478
478
% % As above, amqqueue_process will have the entry for the
479
479
% % msg_id_to_channel mapping.
480
- {true , State # state { seen_status = maps :remove (MsgId , SS ),
481
- confirmed = [MsgId | Confirmed ] }}
480
+ {{ true , drop } , State # state { seen_status = maps :remove (MsgId , SS ),
481
+ confirmed = [MsgId | Confirmed ] }}
482
482
end .
483
483
484
484
set_queue_mode (Mode , State = # state { gm = GM ,
0 commit comments