Skip to content

Commit 4947229

Browse files
committed
chore: requested change 1
1 parent 112ce34 commit 4947229

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

starter/src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Apify.main(async () => {
1212
// @ts-ignore It's not null
1313
const input = await Apify.getInput();
1414

15+
const { maxConcurrentDomainsChecked, urlsToCheck } = input;
16+
1517
// Log the input
1618
log.info('Input provided:');
1719
log.debug(inspect(input, false, 4));
@@ -36,15 +38,13 @@ Apify.main(async () => {
3638
}, 10_000);
3739

3840
state.preparedConfigs = convertInputToActorConfigs(input);
39-
state.totalUrls = input.urlsToCheck.length;
41+
state.totalUrls = urlsToCheck.length;
4042

4143
log.info(`Preparing to process ${state.totalUrls} URLs...\n`);
4244

4345
// Check for revivals first, in the event the actor crashed, and handle those to the end
4446
await revivePendingConfigs(state);
4547

46-
const { maxConcurrentDomainsChecked } = input;
47-
4848
while (true) {
4949
// Each element of domainsToCheck represents a URL with its own run configurations
5050
const domainsToCheck = state.preparedConfigs.splice(0, maxConcurrentDomainsChecked);

0 commit comments

Comments
 (0)