Skip to content

Commit 1ee5ce8

Browse files
authored
fix(clients): use the correct host for search (#3787)
1 parent f85f6d7 commit 1ee5ce8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

templates/java/api.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public class {{classname}} extends ApiClient {
8585
hosts.add(new Host(appId + ".algolia.net", EnumSet.of(CallType.WRITE)));
8686
8787
List<Host> commonHosts = new ArrayList<>();
88-
commonHosts.add(new Host(appId + "-1.algolianet.net", EnumSet.of(CallType.READ, CallType.WRITE)));
89-
commonHosts.add(new Host(appId + "-2.algolianet.net", EnumSet.of(CallType.READ, CallType.WRITE)));
90-
commonHosts.add(new Host(appId + "-3.algolianet.net", EnumSet.of(CallType.READ, CallType.WRITE)));
88+
commonHosts.add(new Host(appId + "-1.algolianet.com", EnumSet.of(CallType.READ, CallType.WRITE)));
89+
commonHosts.add(new Host(appId + "-2.algolianet.com", EnumSet.of(CallType.READ, CallType.WRITE)));
90+
commonHosts.add(new Host(appId + "-3.algolianet.com", EnumSet.of(CallType.READ, CallType.WRITE)));
9191
9292
Collections.shuffle(commonHosts, new Random());
9393

templates/scala/api.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ object {{classname}} {
6464
private def hosts(appId: String): Seq[Host] = {
6565
val commonHosts = Random.shuffle(
6666
List(
67-
Host(appId + "-1.algolianet.net", Set(CallType.Read, CallType.Write)),
68-
Host(appId + "-2.algolianet.net", Set(CallType.Read, CallType.Write)),
69-
Host(appId + "-3.algolianet.net", Set(CallType.Read, CallType.Write))
67+
Host(appId + "-1.algolianet.com", Set(CallType.Read, CallType.Write)),
68+
Host(appId + "-2.algolianet.com", Set(CallType.Read, CallType.Write)),
69+
Host(appId + "-3.algolianet.com", Set(CallType.Read, CallType.Write))
7070
)
7171
)
7272
List(

0 commit comments

Comments
 (0)