chore(fetcher): reduce timeout to 5s
This commit is contained in:
parent
07ddaab7fb
commit
5bfe2f800b
2 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ describe('fetch', () => {
|
|||
'X-Real-IP': '127.0.0.1',
|
||||
},
|
||||
responseType: 'text',
|
||||
timeout: 15000,
|
||||
timeout: 5000,
|
||||
},
|
||||
);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ export class Fetcher {
|
|||
|
||||
return {
|
||||
responseType: 'text',
|
||||
timeout: 15000,
|
||||
timeout: 5000,
|
||||
...config,
|
||||
headers: {
|
||||
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
||||
|
|
|
|||
Loading…
Reference in a new issue