-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add NATS Jetstream KV Store implementation #197
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Vokey <code@vokeylee.com>
… methods Signed-off-by: Vokey <code@vokeylee.com>
The test uses an embedded nats server to simplify the test procedure. Signed-off-by: Vokey <code@vokeylee.com>
Signed-off-by: Vokey <code@vokeylee.com>
…tion comments Signed-off-by: Vokey <code@vokeylee.com>
Signed-off-by: Vokey <code@vokeylee.com>
return err | ||
} | ||
|
||
ctxWithTimeout, cancel := context.WithTimeout(context.TODO(), c.timeout) // Use TODO since context is not available yet. |
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.
As mentioned in the issue comment at #136 (comment), the operation timeout is configured in the Client settings currently, and you're considering changing the interface and using context to set the timeout in a future version.
Therefore, I have used context.TODO
as the parent context as a placeholder.
var ts *server.Server | ||
|
||
// TestMain initializes the embedded nats server and runs the tests. | ||
func TestMain(m *testing.M) { |
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.
I used an embedded sever to simplify the test procedure.
Hi Philipp,
the
gokv
library is fantastic and easy-to-use. I've contributed an implementation for the NATS Jetstream KV store. NATS is a high-performance, increasingly popular distributed messaging system, I believe this addition could be valuable. I would greatly appreciate it if you would consider merging it into the project.