Skip to content

Commit

Permalink
Fixes catch-up events creation in reverse order
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Barreto Alexandre authored and maennchen committed Jun 16, 2020
1 parent 5a02a0b commit aaa50f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/quantum/clock_broadcaster.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ defmodule Quantum.ClockBroadcaster do
end
)

events = Enum.reverse(events)

new_remaining_demand = expected_event_count - Enum.count(events)

if remaining_demand > 0 and new_remaining_demand == 0 do
Expand Down

0 comments on commit aaa50f4

Please sign in to comment.