Skip to content

Comments

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
Owner

No description provided.

@VitaliiHurin
Copy link
Collaborator

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

@Yevhenko
Copy link
Owner Author

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

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

Choose a reason for hiding this comment

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

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

Copy link
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
Collaborator

Choose a reason for hiding this comment

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

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

Copy link
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
Collaborator

Choose a reason for hiding this comment

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

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

Copy link
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
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
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