-
Notifications
You must be signed in to change notification settings - Fork 99
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
Make Acknowledgment
spelling consistent
#657
Conversation
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
ce90211
to
9a73d0c
Compare
cli/consumer_command.go
Outdated
@@ -658,9 +658,9 @@ func (c *consumerCmd) showInfo(config api.ConsumerConfig, state api.ConsumerInfo | |||
|
|||
if config.AckPolicy != api.AckNone { | |||
if state.AckFloor.Last == nil { | |||
fmt.Printf(" Acknowledgment floor: Consumer sequence: %s Stream sequence: %s\n", humanize.Comma(int64(state.AckFloor.Consumer)), humanize.Comma(int64(state.AckFloor.Stream))) | |||
fmt.Printf(" Acknowledgement floor: Consumer sequence: %s Stream sequence: %s\n", humanize.Comma(int64(state.AckFloor.Consumer)), humanize.Comma(int64(state.AckFloor.Stream))) |
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.
In american it's Acknowledgment and in british its Acknowledgement. Both are corect but we tend to use american english here
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.
Sure, but checking the codebase, everywhere else British version is used.
Should not call it "typo" though ;).
Those are only two uses of american ones for that word.
Examples:
if c.maxAckPending == -1 && cfg.AckPolicy != api.AckNone {
err = askOne(&survey.Input{
Message: "Maximum Acknowledgements Pending",
Default: "0",
Help: "The maximum number of messages without acknowledgement that can be outstanding, once this limit is reached message delivery will be suspended. Settable using --max-pending.",
}, &c.maxAckPending)
fisk.FatalIfError(err, "could not ask for maximum outstanding acknowledgements")
}
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.
Think we should make those American then :)
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.
Agree, will "reverse" this PR approach :)
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
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
Acknowledgment
spelling consistent.
Acknowledgment
spelling consistent.Acknowledgment
spelling consistent
Found a typo in the Consumer state.
Acknowledgment
->Acknowledgement
.