Skip to content

Commit 629326e

Browse files
committed
fix insights retry
1 parent 9a12520 commit 629326e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/algolia.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ defmodule Algolia do
4141

4242
defp host(:read, 0), do: "#{application_id()}-dsn.algolia.net"
4343
defp host(:write, 0), do: "#{application_id()}.algolia.net"
44-
defp host(:insights, 0), do: "insights.algolia.io"
44+
45+
defp host(:insights, _curr_retry), do: "insights.algolia.io"
4546

4647
defp host(_subdomain_hint, curr_retry) when curr_retry <= 3,
4748
do: "#{application_id()}-#{curr_retry}.algolianet.com"

0 commit comments

Comments
 (0)