From b49054eacd4d8483c63e4fd942630244ab4eaccc Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期四, 30 十一月 2023 09:48:16 +0800 Subject: [PATCH] test 1.2.6 --- hbusc.go | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/hbusc.go b/hbusc.go index aa7ea61..cf25556 100644 --- a/hbusc.go +++ b/hbusc.go @@ -11,6 +11,8 @@ "sync" "time" "unsafe" + + "github.com/bytedance/sonic" ) type MsgReq struct { @@ -297,7 +299,11 @@ } func (h *BHBus) Reply(src unsafe.Pointer, i *Reply) error { - data,err := json.Marshal(i) + defer func() { + i = nil + }() + + data,err := sonic.Marshal(i) if err != nil { return err } -- Gitblit v1.8.0