Skip to content

Commit 35a8051

Browse files
committed
Lighten the retry backoff curve
1 parent 6232b66 commit 35a8051

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Network/HTTP/Affjax.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ retry milliseconds run req = do
157157
Right b -> pure b
158158
Left resp -> do
159159
putVar failureVar resp
160-
-- TODO: is this too steep?
161-
let delay = round $ max maxDelay $ 1000.0 * (pow 2.0 $ toNumber (n - 1))
160+
let delay = round $ max maxDelay $ 100.0 * (pow 2.0 $ toNumber (n - 1))
162161
later' delay $ go failureVar (n + 1)
163162

164163
-- | Run a request directly without using `Aff`.

0 commit comments

Comments
 (0)