Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix collection update. Validation. Chunks #58

Merged
merged 10 commits into from
May 11, 2021
Merged

Fix collection update. Validation. Chunks #58

merged 10 commits into from
May 11, 2021

Conversation

OlegMakarenko
Copy link
Contributor

@OlegMakarenko OlegMakarenko commented Mar 30, 2021

  • Improve db collections update transaction
  • Added node model validation
  • Node list splitted into the chunks and added delay of getting info
  • Added initial node list into the loop

...nodeInfo.data,
host,
});
} catch (e) {}
Copy link
Member

Choose a reason for hiding this comment

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

I think it may good to add logger.error inside the catch, at least we know which nodeUrl have an issue during the get request?

private fetchNodesByURL = async (nodeUrl: string, includeCurrent: boolean = false): Promise<Array<INode>> => {
let nodeList = [];

if (includeCurrent === true) {
Copy link
Member

Choose a reason for hiding this comment

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

i think we can rename it to isIncludeCurrent

and if (isIncludeCurrent) will be enough?

@OlegMakarenko OlegMakarenko merged commit 49a212d into dev May 11, 2021
@OlegMakarenko OlegMakarenko mentioned this pull request May 17, 2021
@AnthonyLaw AnthonyLaw deleted the fix-db branch June 3, 2021 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants