-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Move api version check to daemon #2003
Conversation
Doesn't solve the closenotify chan problem, however. |
Awesome! looks like it breaks tests though |
Saw it, possibly because now that the daemon demands the api header. Make it optional? (or make it necessary) |
72e090e
to
977aed3
Compare
I picked the optional, since it was the default behavior previously. |
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
3e406ee
to
1e95594
Compare
Not sure how to fix the pollEndpoint errs. |
those errors look like its the daemon failing to start. |
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
👍 on this PR. Optional sounds good to me, too. sharness tests still failing. |
|
||
// make sure the api is actually running. | ||
// this is slow, as it might mean an RTT to a remote server. | ||
// TODO: optimize some way |
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.
ok, there's a problem here. part of the goal is to check that the endpoint is available, which may be a case of a stale $repo/api
file (eg ipfs daemon, then kill -9 $pid). we could "check" by trying to use it, but im no longer sure how the flow will work here. I recall it being tricky to get right + cover all the bases.
(moved to 0.3.11 #2037) |
closes #1990