renamed createAxiosRetry() to createAxiosInstance()
This commit is contained in:
parent
b6d468c280
commit
f3e8f4186e
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ import {
|
|||
import axiosRetry from 'axios-retry';
|
||||
import axiosBetterStacktrace from 'axios-better-stacktrace';
|
||||
|
||||
const createAxiosRetry = (config?: HttpModuleOptions) => {
|
||||
const createAxiosInstance = (config?: HttpModuleOptions) => {
|
||||
const axiosInstance = Axios.create(config);
|
||||
axiosRetry(axiosInstance, config);
|
||||
axiosBetterStacktrace(axiosInstance);
|
||||
|
@ -27,7 +27,7 @@ const createAxiosRetry = (config?: HttpModuleOptions) => {
|
|||
HttpService,
|
||||
{
|
||||
provide: AXIOS_INSTANCE_TOKEN,
|
||||
useValue: createAxiosRetry(),
|
||||
useValue: createAxiosInstance(),
|
||||
},
|
||||
],
|
||||
exports: [HttpService],
|
||||
|
|
Loading…
Reference in a new issue