Skip to content

Commit 0fdb559

Browse files
committed
rand_
1 parent 61b507f commit 0fdb559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ecto/adapters/sqlite3/connection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule Ecto.Adapters.SQLite3.Connection do
2424
def handle_thundering_herd(opts) do
2525
case Keyword.get(opts, :pool_index) do
2626
idx -> :timer.sleep(idx * @idx_connect_buffer)
27-
nil -> :timer.sleep(:rand.uniform(@connect_buffer))
27+
nil -> :timer.sleep(:rand.uniform(@rand_connect_buffer))
2828
end
2929

3030
opts

0 commit comments

Comments
 (0)