Skip to content

Commit

Permalink
fix(clients): use the correct host for search (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3787

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed Sep 20, 2024
1 parent ee3190a commit 6d71490
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/algoliasearch/api/RecommendClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ object RecommendClient {
private def hosts(appId: String): Seq[Host] = {
val commonHosts = Random.shuffle(
List(
Host(appId + "-1.algolianet.net", Set(CallType.Read, CallType.Write)),
Host(appId + "-2.algolianet.net", Set(CallType.Read, CallType.Write)),
Host(appId + "-3.algolianet.net", Set(CallType.Read, CallType.Write))
Host(appId + "-1.algolianet.com", Set(CallType.Read, CallType.Write)),
Host(appId + "-2.algolianet.com", Set(CallType.Read, CallType.Write)),
Host(appId + "-3.algolianet.com", Set(CallType.Read, CallType.Write))
)
)
List(
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/algoliasearch/api/SearchClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ object SearchClient {
private def hosts(appId: String): Seq[Host] = {
val commonHosts = Random.shuffle(
List(
Host(appId + "-1.algolianet.net", Set(CallType.Read, CallType.Write)),
Host(appId + "-2.algolianet.net", Set(CallType.Read, CallType.Write)),
Host(appId + "-3.algolianet.net", Set(CallType.Read, CallType.Write))
Host(appId + "-1.algolianet.com", Set(CallType.Read, CallType.Write)),
Host(appId + "-2.algolianet.com", Set(CallType.Read, CallType.Write)),
Host(appId + "-3.algolianet.com", Set(CallType.Read, CallType.Write))
)
)
List(
Expand Down

0 comments on commit 6d71490

Please sign in to comment.