diff --git a/server/consumer.go b/server/consumer.go index 792aa1fc..f3ac3b04 100644 --- a/server/consumer.go +++ b/server/consumer.go @@ -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} diff --git a/server/stream.go b/server/stream.go index 6a6e69a0..5aaffff4 100644 --- a/server/stream.go +++ b/server/stream.go @@ -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}