From f7c58ea4aa53c658382ff7858e0caed45afecb37 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Mon, 23 Nov 2026 16:18:01 +0100 Subject: [PATCH] fix: Compile on Elixir 1.12 so releases publish to Hex --- lib/flagsmith_client_events_processor.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flagsmith_client_events_processor.ex b/lib/flagsmith_client_events_processor.ex index db08bed..37e4d45 100644 --- a/lib/flagsmith_client_events_processor.ex +++ b/lib/flagsmith_client_events_processor.ex @@ -488,7 +488,7 @@ defmodule Flagsmith.Client.Events.Processor do reason: inspect(failure(result)) ) - backoff = :rand.uniform(@retry_base_milliseconds * 2 ** (attempt - 1) + 1) - 1 + backoff = :rand.uniform(@retry_base_milliseconds * Integer.pow(2, attempt - 1) + 1) - 1 case remaining(deadline) do remaining when remaining <= backoff ->