Skip to content

Commit 874098e

Browse files
alexandremcostaAlexandre Costa
and
Alexandre Costa
authored
Force increasing Range to keep the same behaviour as with earlier elixir versions (#276)
Co-authored-by: Alexandre Costa <alexandrecosta@apple.com>
1 parent 2b82ab8 commit 874098e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/id_server.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule Mongo.IdServer do
4040

4141
def handle_info(:reset_counters, last_reset) do
4242
new_reset = opposite_on_window(:calendar.universal_time())
43-
:ets.insert(@name, gen_counters((last_reset + 1)..new_reset))
43+
:ets.insert(@name, gen_counters((last_reset + 1)..new_reset//1))
4444
Process.send_after(self(), :reset_counters, @reset_timer)
4545

4646
{:noreply, new_reset}

0 commit comments

Comments
 (0)