Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(javascript): node timeouts #123

Merged
merged 1 commit into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function abtestingApi(
apiKey,
region,
timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function analyticsApi(
apiKey,
region,
timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function insightsApi(
apiKey,
region,
timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function personalizationApi(
apiKey,
region,
timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function querySuggestionsApi(
apiKey,
region,
timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export function searchApi(
apiKey,

timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function sourcesApi(
apiKey,
region,
timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down
4 changes: 2 additions & 2 deletions clients/algoliasearch-client-javascript/recommend/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export function recommendApi(
apiKey,

timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down
4 changes: 2 additions & 2 deletions templates/javascript/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export function {{apiName}}Api(
apiKey,
{{#hasRegionalHost}}region,{{/hasRegionalHost}}
timeouts: {
connect: 1,
read: 2,
connect: 2,
read: 5,
write: 30,
},
requester: options?.requester ?? new HttpRequester(),
Expand Down