Advent22 axios timeout
This commit is contained in:
parent
1866833d3d
commit
79fc7dc89d
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ export class Advent22 {
|
|||
private api_auth = { username: "", password: "" };
|
||||
|
||||
public constructor() {
|
||||
this.axios = axios.create();
|
||||
this.axios = axios.create({
|
||||
timeout: 10000,
|
||||
});
|
||||
}
|
||||
|
||||
private get api_baseurl(): string {
|
||||
|
|
Loading…
Reference in a new issue