Skip to content

Commit

Permalink
feat: add http client timeout (#248)
Browse files Browse the repository at this point in the history
Refs: closes #241

## Summary

Add 1 minute timeout to EcoMap HTTP client.
  • Loading branch information
joaotomaspinheiro authored Jul 6, 2024
1 parent ba9dfbf commit 1b6d49d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/lib/clients/ecomap/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const middleware: Middleware = {

const ecomapHttpClient = createClient<paths>({
baseUrl: "/api",
signal: AbortSignal.timeout(1000 * 60), // 1 minute timeout.
});

ecomapHttpClient.use(middleware);
Expand Down

0 comments on commit 1b6d49d

Please sign in to comment.