提交 506d7030 authored 作者: mooncake9527's avatar mooncake9527

upd

上级 da5dda94
package json_utils package jsonutils
import ( import (
"bytes" "bytes"
......
...@@ -18,7 +18,7 @@ import ( ...@@ -18,7 +18,7 @@ import (
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger" "gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
merge "gitlab.wanzhuangkj.com/tush/xpkg/pkg/merger" merge "gitlab.wanzhuangkj.com/tush/xpkg/pkg/merger"
"gitlab.wanzhuangkj.com/tush/xpkg/utils/ctxUtils" "gitlab.wanzhuangkj.com/tush/xpkg/utils/ctxUtils"
"gitlab.wanzhuangkj.com/tush/xpkg/utils/json_utils" "gitlab.wanzhuangkj.com/tush/xpkg/utils/jsonutils"
"gitlab.wanzhuangkj.com/tush/xpkg/utils/retryUtils" "gitlab.wanzhuangkj.com/tush/xpkg/utils/retryUtils"
"gitlab.wanzhuangkj.com/tush/xpkg/utils/xsf" "gitlab.wanzhuangkj.com/tush/xpkg/utils/xsf"
"gitlab.wanzhuangkj.com/tush/xpkg/utils/xtime" "gitlab.wanzhuangkj.com/tush/xpkg/utils/xtime"
...@@ -165,10 +165,10 @@ func AddAsync(ctx context.Context, traceNo, operate string, req *entity.CopyHttp ...@@ -165,10 +165,10 @@ func AddAsync(ctx context.Context, traceNo, operate string, req *entity.CopyHttp
wl.Operate = operate wl.Operate = operate
wl.CreatedAt = xtime.Now() wl.CreatedAt = xtime.Now()
if req != nil { if req != nil {
wl.Req = json_utils.ToJSONStringPtr(req) wl.Req = jsonutils.ToJSONStringPtr(req)
} }
if rsp != nil { if rsp != nil {
wl.Rsp = json_utils.ToJSONStringPtr(rsp) wl.Rsp = jsonutils.ToJSONStringPtr(rsp)
} }
go func() { go func() {
merger.Add(wl) merger.Add(wl)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论