Skip to content

Commit

Permalink
chore: remove redundant availableCapacity
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed May 25, 2023
1 parent cdaf93d commit c462895
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions packages/util-retry/src/StandardRetryStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export class StandardRetryStrategy implements RetryStrategyV2 {

public async acquireInitialRetryToken(retryTokenScope: string): Promise<StandardRetryToken> {
return createDefaultRetryToken({
availableCapacity: this.capacity,
retryDelay: DEFAULT_RETRY_DELAY_BASE,
retryCount: 0,
});
Expand Down Expand Up @@ -60,7 +59,6 @@ export class StandardRetryStrategy implements RetryStrategyV2 {
}
this.capacity -= capacityCost;
return createDefaultRetryToken({
availableCapacity: this.capacity,
retryDelay,
retryCount: token.getRetryCount() + 1,
lastRetryCost: capacityCost,
Expand Down
1 change: 0 additions & 1 deletion packages/util-retry/src/defaultRetryToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const createDefaultRetryToken = ({
retryCount,
lastRetryCost,
}: {
availableCapacity: number;
retryDelay: number;
retryCount: number;
lastRetryCost?: number;
Expand Down

0 comments on commit c462895

Please sign in to comment.