From bbae9872c872398870893c43a760187b90ab5135 Mon Sep 17 00:00:00 2001 From: Alexandre Costa Date: Tue, 27 May 2025 14:54:44 -0500 Subject: [PATCH] Force increasing Range to keep the same behaviour as with earlier elixir versions --- lib/mongo/id_server.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/id_server.ex b/lib/mongo/id_server.ex index bd99c297..80150533 100644 --- a/lib/mongo/id_server.ex +++ b/lib/mongo/id_server.ex @@ -40,7 +40,7 @@ defmodule Mongo.IdServer do def handle_info(:reset_counters, last_reset) do new_reset = opposite_on_window(:calendar.universal_time()) - :ets.insert(@name, gen_counters((last_reset + 1)..new_reset)) + :ets.insert(@name, gen_counters((last_reset + 1)..new_reset//1)) Process.send_after(self(), :reset_counters, @reset_timer) {:noreply, new_reset}