-
Notifications
You must be signed in to change notification settings - Fork 60
Ensure queries stop after error or success #93
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor feedback, overall this looks good, nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR dirk!
Except for the things pointed out by Jacob, everything looks good to me 🚀
src/sim-server.js
Outdated
@@ -0,0 +1,42 @@ | |||
'use strict' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this file was accidentally added?
3297293
to
65d8e0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I've been testing this will my js-ipfs build locally and it looks good there as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Released on |
Currently queries continue running
This PR changes the query function to return either
pathComplete
orqueryComplete
, wherequeryComplete
indicates that the whole query should stop (not just this particular disjoint path)It also ensures that queries are stopped after a timeout or any other error.