From 2637e81fa110ee29e4ba00e731ad9e289b48d9d0 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 9 Jun 2023 19:21:40 +0800 Subject: [PATCH] callback --- internal/rpc/msg/send.go | 1 - pkg/common/http/http_client.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/rpc/msg/send.go b/internal/rpc/msg/send.go index 8b2467846..89f015315 100644 --- a/internal/rpc/msg/send.go +++ b/internal/rpc/msg/send.go @@ -72,7 +72,6 @@ func (m *msgServer) sendMsgNotification(ctx context.Context, req *pbMsg.SendMsgR } func (m *msgServer) sendMsgSingleChat(ctx context.Context, req *pbMsg.SendMsgReq) (resp *pbMsg.SendMsgResp, err error) { - defer log.ZDebug(ctx, "sendMsgSingleChat return line") promePkg.Inc(promePkg.SingleChatMsgRecvSuccessCounter) if err := m.messageVerification(ctx, req); err != nil { return nil, err diff --git a/pkg/common/http/http_client.go b/pkg/common/http/http_client.go index 1f64c5ef9..2227a3438 100644 --- a/pkg/common/http/http_client.go +++ b/pkg/common/http/http_client.go @@ -82,7 +82,7 @@ func PostReturn(ctx context.Context, url string, header map[string]string, input } func callBackPostReturn(ctx context.Context, url, command string, input interface{}, output callbackstruct.CallbackResp, callbackConfig config.CallBackConfig) error { - log.ZDebug(ctx, "callback", "url", url, "command", command, "input", input, "callbackConfig", callbackConfig) + defer log.ZDebug(ctx, "callback", "url", url, "command", command, "input", input, "callbackConfig", callbackConfig) v := urlLib.Values{} v.Set(constant.CallbackCommand, command) url = url + "?" + v.Encode()