From ebe4f8957fdfab18cf3cd05f0ecfcd345066f626 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Mon, 3 Apr 2023 21:08:59 -0700 Subject: [PATCH] Spelling based on review feedback Signed-off-by: Derek Collison --- server/consumer.go | 2 +- server/stream.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}