-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Client readme #1881
Client readme #1881
Conversation
Use BatchPoints for writing from client library
The changes to the README. Wouldn't it better if all that good information were in the form of GoDoc comments? That way we can just generate documentation automatically. The content in the README is good, but it just seems to have written GoDoc-type stuff in the README, where the README would be better to point to one of those sites that generates pretty documentation from code comments. That way the documentation is more likely to remain correct. |
@otoolep this was generated from the godoc comments. I agree that we need to update our documents as well to give a much better version of this. When that is done, we should remove it from here. For now, we have nothing, so this was just a first attempt at getting something. |
I was thinking it was very similar to GoDoc. :-) Perhaps I am missing something, but it's not clear to me why GoDoc-generated stuff needs to be added to the README. Why not just let the source comments speak for themselves, and simply do what Bolt does in its README? I.e. reference the equivalent of: https://godoc.org/github.com/boltdb/bolt And use the README for purely some examples, again like Bolt does. |
@@ -726,7 +726,7 @@ func TestClientLibrary(t *testing.T) { | |||
} | |||
|
|||
if test.query.Command != "" { | |||
time.Sleep(50 * time.Millisecond) | |||
time.Sleep(100 * time.Millisecond) |
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.
Did you find you needed to do this?
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.
Yes, 50 was sometimes coming up short. 100 always worked. Until we get our wait endpoint back up to par this feels like the best we can do.
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, it's just a stop-gap anyway so cool.
@otoolep Sometimes I work to hard :-). I forgot that godoc is automatic on that site. |
Latest changes look find to me. +1. |
Update the client readme. Add missing comments. Fix inconsistencies in code based on desired behavior.