From 655699d95125f21af9c0c099a7508d85b186da2f Mon Sep 17 00:00:00 2001 From: Ivan Puchkov Date: Thu, 12 Oct 2023 20:26:57 +0700 Subject: [PATCH] Typo fix in Backoff.exponential/2 documentation (#964) Replace millseconds with seconds wording to avoid confusion --- lib/oban/backoff.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oban/backoff.ex b/lib/oban/backoff.ex index 8897a727..02b7f542 100644 --- a/lib/oban/backoff.ex +++ b/lib/oban/backoff.ex @@ -4,7 +4,7 @@ defmodule Oban.Backoff do @type jitter_mode :: :inc | :dec | :both @doc """ - Calculate an exponential backoff in millseconds for a given attempt. + Calculate an exponential backoff in seconds for a given attempt. By default, the exponent is clamped to a maximum of 10 to prevent unreasonably long delays.