Skip to content

Basic decision engine(II)#5

Merged
badkk merged 3 commits intomainfrom
zikun/add-pending-pickup
Nov 7, 2020
Merged

Basic decision engine(II)#5
badkk merged 3 commits intomainfrom
zikun/add-pending-pickup

Conversation

@badkk
Copy link
Copy Markdown
Contributor

@badkk badkk commented Nov 7, 2020

  1. Add pending, pulling and sealing base function logic;
  2. Add pending/pulling/sealing subscriber(listener);
  3. Add basic index.js main logic

@badkk badkk changed the title Add pending pickup Basic decision engine(II) Nov 7, 2020
@badkk
Copy link
Copy Markdown
Contributor Author

badkk commented Nov 7, 2020

Later job with #4

@badkk badkk merged commit ad497db into main Nov 7, 2020
@badkk badkk deleted the zikun/add-pending-pickup branch November 7, 2020 09:26
cid: newSorder.file_identifier,
bn: bn,
size: parseInt(newSorder.file_size),
size: _.parseInt(newSorder.file_size, 10),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Change here @pangwa


for (const pt of oldPts) {
// 2. If join pullings and start puling in ipfs, otherwise push back to pending tasks
if (await this.pickOrDropPending(pt.cid, pt.size)) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

add await here @pangwa

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