-
Notifications
You must be signed in to change notification settings - Fork 151
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
Fix KV allow direct #879
Fix KV allow direct #879
Conversation
|
||
Assert.NotNull(kv1.Get(key1)); | ||
Assert.NotNull(kv1.Get(key2)); | ||
// TODO COME BACK ONCE SERVER IS FIXED |
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.
can we reference what the issue is?
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.
Yeah, if one is made.
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.
LGTM - probably good to reference what the issue is in TODO comments
@@ -47,7 +47,15 @@ private void Init(Msg msg, bool fromDirect, string streamName) | |||
Headers = msg.Header; | |||
Subject = msg.Header.GetLast(JetStreamConstants.NatsSubject); | |||
Data = msg.Data; | |||
Sequence = ulong.Parse(msg.Header[JetStreamConstants.NatsSequence]); | |||
try |
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.
user TryParse
instead
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.
Multiple values in the header.
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.
LGTM
KV streams require allow_direct set to true. This setting was not done and now is fixed.