Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

fix: stats not implemented on jsipfs #209

Merged
merged 3 commits into from
Jan 25, 2018
Merged

fix: stats not implemented on jsipfs #209

merged 3 commits into from
Jan 25, 2018

Conversation

hacdias
Copy link
Contributor

@hacdias hacdias commented Jan 25, 2018

@ghost ghost assigned hacdias Jan 25, 2018
@ghost ghost added the in progress label Jan 25, 2018
@hacdias
Copy link
Contributor Author

hacdias commented Jan 25, 2018

@diasdavid could you check if this (only returning when we're using promises) is right?

@hacdias
Copy link
Contributor Author

hacdias commented Jan 25, 2018

@diasdavid just confirmed and it works.

src/stats.js Outdated
return
}

ipfs.stats.bw().then((res) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

@hacdias you should add a return here. Otherwise the test will pass before the call happens.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OOPS! Sorry. fixed!

@hacdias
Copy link
Contributor Author

hacdias commented Jan 25, 2018

@diasdavid fixed 😄

src/stats.js Outdated
@@ -101,7 +101,7 @@ module.exports = (common) => {
return
}

ipfs.stats.bw().then((res) => {
return ipfs.stats.bw().then((res) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

@hacdias have you checked if this is done in all the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, on all promises tests

Copy link
Contributor

Choose a reason for hiding this comment

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

thank you 👍

@daviddias daviddias merged commit af32ecf into master Jan 25, 2018
@daviddias daviddias deleted the stats-jsipfs branch January 25, 2018 20:19
@ghost ghost removed the in progress label Jan 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants