mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
Spelling based on review feedback
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -2860,7 +2860,7 @@ func newNextMsgReq(reply string, msg []byte) *nextMsgReq {
|
||||
} else {
|
||||
nmr = &nextMsgReq{}
|
||||
}
|
||||
// When getting something from a pool it is criticical that all fields are
|
||||
// When getting something from a pool it is critical that all fields are
|
||||
// initialized. Doing this way guarantees that if someone adds a field to
|
||||
// the structure, the compiler will fail the build if this line is not updated.
|
||||
(*nmr) = nextMsgReq{reply, msg}
|
||||
|
||||
@@ -4223,7 +4223,7 @@ func newJSPubMsg(dsubj, subj, reply string, hdr, msg []byte, o *consumer, seq ui
|
||||
} else {
|
||||
m = new(jsPubMsg)
|
||||
}
|
||||
// When getting something from a pool it is criticical that all fields are
|
||||
// When getting something from a pool it is critical that all fields are
|
||||
// initialized. Doing this way guarantees that if someone adds a field to
|
||||
// the structure, the compiler will fail the build if this line is not updated.
|
||||
(*m) = jsPubMsg{dsubj, reply, StoreMsg{subj, hdr, msg, buf, seq, 0}, o}
|
||||
|
||||
Reference in New Issue
Block a user