Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Jul 17, 2024
1 parent 84e864b commit ea10909
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/util/http/throttle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ export function getThrottle(url: string): Throttle | null {
throttle = null; // null represents "no throttle", as opposed to undefined
const throttleMs = getThrottleIntervalMs(url);
if (throttleMs) {
const intervalMs = throttleMs;
logger.debug(`Using throttle ${intervalMs} intervalMs for host ${host}`);
throttle = new Throttle(intervalMs);
logger.debug(`Using throttle ${throttleMs} intervalMs for host ${host}`);
throttle = new Throttle(throttleMs);
} else {
logger.trace({ host }, 'No throttle');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/workers/global/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import * as packageCache from '../../util/cache/package';
import { setEmojiConfig } from '../../util/emoji';
import { validateGitVersion } from '../../util/git';
import * as hostRules from '../../util/host-rules';
import { setHttpRateLimits } from '../../util/http/rate-limits';
import { initMergeConfidence } from '../../util/merge-confidence';
import { setMaxLimit } from './limits';
import { setHttpRateLimits } from '../../util/http/rate-limits';

async function setDirectories(input: AllConfig): Promise<AllConfig> {
const config: AllConfig = { ...input };
Expand Down

0 comments on commit ea10909

Please sign in to comment.