Skip to content

Commit 6d71490

Browse files
algolia-botmillotp
andcommitted
fix(clients): use the correct host for search (generated)
algolia/api-clients-automation#3787 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent ee3190a commit 6d71490

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/scala/algoliasearch/api/RecommendClient.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ object RecommendClient {
4646
private def hosts(appId: String): Seq[Host] = {
4747
val commonHosts = Random.shuffle(
4848
List(
49-
Host(appId + "-1.algolianet.net", Set(CallType.Read, CallType.Write)),
50-
Host(appId + "-2.algolianet.net", Set(CallType.Read, CallType.Write)),
51-
Host(appId + "-3.algolianet.net", Set(CallType.Read, CallType.Write))
49+
Host(appId + "-1.algolianet.com", Set(CallType.Read, CallType.Write)),
50+
Host(appId + "-2.algolianet.com", Set(CallType.Read, CallType.Write)),
51+
Host(appId + "-3.algolianet.com", Set(CallType.Read, CallType.Write))
5252
)
5353
)
5454
List(

src/main/scala/algoliasearch/api/SearchClient.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ object SearchClient {
104104
private def hosts(appId: String): Seq[Host] = {
105105
val commonHosts = Random.shuffle(
106106
List(
107-
Host(appId + "-1.algolianet.net", Set(CallType.Read, CallType.Write)),
108-
Host(appId + "-2.algolianet.net", Set(CallType.Read, CallType.Write)),
109-
Host(appId + "-3.algolianet.net", Set(CallType.Read, CallType.Write))
107+
Host(appId + "-1.algolianet.com", Set(CallType.Read, CallType.Write)),
108+
Host(appId + "-2.algolianet.com", Set(CallType.Read, CallType.Write)),
109+
Host(appId + "-3.algolianet.com", Set(CallType.Read, CallType.Write))
110110
)
111111
)
112112
List(

0 commit comments

Comments
 (0)