Skip to content

Commit

Permalink
fix insights retry
Browse files Browse the repository at this point in the history
  • Loading branch information
bhan-slab committed May 31, 2022
1 parent 9a12520 commit 629326e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/algolia.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ defmodule Algolia do

defp host(:read, 0), do: "#{application_id()}-dsn.algolia.net"
defp host(:write, 0), do: "#{application_id()}.algolia.net"
defp host(:insights, 0), do: "insights.algolia.io"

defp host(:insights, _curr_retry), do: "insights.algolia.io"

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

0 comments on commit 629326e

Please sign in to comment.