From 4583afc2b002debb0bf3aa42d353bba608b0367c Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Tue, 2 Mar 2021 18:36:28 -0800 Subject: [PATCH] Updated comment Signed-off-by: Derek Collison --- server/jetstream_api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/jetstream_api.go b/server/jetstream_api.go index 5c7dc03e..440db174 100644 --- a/server/jetstream_api.go +++ b/server/jetstream_api.go @@ -667,7 +667,9 @@ func (js *jetStream) apiDispatch(sub *subscription, c *client, subject, reply st } // If we are here we can properly dispatch this API call. - // Copy the message and the client. Client for the pubArgs. + // Copy the message and the client. Client for the pubArgs + // but note the JSAPI only uses the hdr index to piece apart + // the header from the msg body. No other references are needed. // FIXME(dlc) - Should cleanup eventually and make sending // and receiving internal messages more formal. rmsg = append(rmsg[:0:0], rmsg...)