We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3ebaa6 commit 4ed2a54Copy full SHA for 4ed2a54
lib/sentry/client.ex
@@ -329,13 +329,10 @@ defmodule Sentry.Client do
329
end)
330
end
331
332
- defp sleep(attempt_number) do
333
- # sleep 2^n seconds
334
- :math.pow(2, attempt_number)
335
- |> Kernel.*(1000)
336
- |> Kernel.round()
337
- |> :timer.sleep()
338
- end
+ defp sleep(1), do: :timer.sleep(2000)
+ defp sleep(2), do: :timer.sleep(4000)
+ defp sleep(3), do: :timer.sleep(8000)
+ defp sleep(_), do: :timer.sleep(8000)
339
340
defp sample_event?(1), do: true
341
defp sample_event?(1.0), do: true
0 commit comments