From 05ca8f4346cb04eb8139bb35bef6ca926fbfacd6 Mon Sep 17 00:00:00 2001 From: "R.I.Pienaar" Date: Sat, 4 Jan 2020 11:51:12 +0100 Subject: [PATCH] adds json tags to StoredMsg This gets sent as response to JetStreamMsgBySeqPre Signed-off-by: R.I.Pienaar --- server/msgset.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/msgset.go b/server/msgset.go index aa1032e8..ec70a6e2 100644 --- a/server/msgset.go +++ b/server/msgset.go @@ -422,9 +422,9 @@ type jsPubMsg struct { } type StoredMsg struct { - Subject string - Data []byte - Time time.Time + Subject string `json:"subject"` + Data []byte `json:"data"` + Time time.Time `json:"time"` } // TODO(dlc) - Maybe look at onering instead of chan - https://github.com/pltr/onering