Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tichon29 committed Dec 3, 2020
1 parent 3a529fe commit c01ee6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/breaker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export abstract class SlidingWindowBreaker<T> extends Module {
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
protected executePromise(promise: CircuitFunction, ...params: any[]): Promise<{requestResult: SlidingWindowRequestResult, response: any, shouldReportFailure?: boolean}> {
protected executePromise(promise: CircuitFunction, ...params: any[]): Promise<{requestResult: SlidingWindowRequestResult, response: any, shouldReportFailure: boolean}> {
const beforeRequest = (new Date()).getTime();
return promise(...params)
.then((res) => {
Expand All @@ -235,7 +235,7 @@ export abstract class SlidingWindowBreaker<T> extends Module {
requestResp = SlidingWindowRequestResult.TIMEOUT;
}
}
return {requestResult: requestResp, response: res};
return {requestResult: requestResp, response: res, shouldReportFailure: false};
})
.catch((err) => {
return {requestResult: SlidingWindowRequestResult.FAILURE, response: err, shouldReportFailure: this.onError(err)};
Expand Down

0 comments on commit c01ee6b

Please sign in to comment.