Skip to content

Commit 74a38e8

Browse files
committed
[~] Index: pages qtd and factory by language
1 parent a5e4fcb commit 74a38e8

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ const Factory = require('./src/factory');
66
// GitHub API token
77
const token = process.env.TOKEN;
88
// Quantity of pages as objective (5 at time)
9-
const pages = 200;
9+
const pages = 20;
1010

1111
// New factory to mine
12-
const factory = new Factory(token, pages);
12+
const pythonFactory = new Factory(token, pages, 'python');
1313

1414
// Start to mine
15-
factory.start().then(() => {
16-
process.exit();
15+
pythonFactory.start().then(() => {
16+
const javaFactory = new Factory(token, pages, 'java');
17+
18+
javaFactory.start().then(() => {
19+
process.exit();
20+
});
1721
});

0 commit comments

Comments
 (0)