Skip to content

homework-08 pre-alfa#12

Open
Yevhenko wants to merge 8 commits intomasterfrom
homework-08
Open

homework-08 pre-alfa#12
Yevhenko wants to merge 8 commits intomasterfrom
homework-08

Conversation

@Yevhenko
Copy link
Copy Markdown
Owner

No description provided.

@VitaliiHurin
Copy link
Copy Markdown
Collaborator

Закомітив node_modules? :(

@Yevhenko
Copy link
Copy Markdown
Owner Author

Виправив наче, але я ще в процесі розробки)

Comment on lines +58 to +63
for (let count = 1; count < 30; count += 1) {
setTimeout(() => {
mainPoint();
}, 100 * 2 ** count);
break;
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Що це за такий спосіб дивний? :)
Воно ж все одно буде щоразу з 1 стартувати.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment on lines +33 to +50
async function mainLimit() {
try {
const data = await request.post(optionsLimit);
console.log('Limit:', data);
} catch (error) {
console.log(error);
}
}

async function mainMetrics() {
try {
const data = await request(optionsMetrics);
console.log('Metrics:', data);
} catch (error) {
console.log(error);
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Чому тут нема ретраїв?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment on lines +3 to +4
const httpCL = require('./httpClient');
const rpn = require('./req-pr-nt');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Різна стилістика написання назв файлів.
І взагалі, чому економити букви в назві файла? :)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

headers: { authorization },
} = req;

if (authorization !== 'Basic WWV2aGVuOjEyMzQ1') {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Краще Basic Auth реалізувати не так з явною перевіркою напряму.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants