Skip to content

Commit aaa50f4

Browse files
Eduardo Barreto Alexandremaennchen
authored andcommitted
Fixes catch-up events creation in reverse order
1 parent 5a02a0b commit aaa50f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/quantum/clock_broadcaster.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ defmodule Quantum.ClockBroadcaster do
7272
end
7373
)
7474

75+
events = Enum.reverse(events)
76+
7577
new_remaining_demand = expected_event_count - Enum.count(events)
7678

7779
if remaining_demand > 0 and new_remaining_demand == 0 do

0 commit comments

Comments
 (0)