From 6dacf2331239f70b3f8a8d9bf57a5fc03cd14501 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Mon, 15 Nov 2021 11:46:02 +0800 Subject: [PATCH] log change --- internal/rpc/friend/add_friend.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/rpc/friend/add_friend.go b/internal/rpc/friend/add_friend.go index 8e7cd7208..bda0de95c 100644 --- a/internal/rpc/friend/add_friend.go +++ b/internal/rpc/friend/add_friend.go @@ -118,13 +118,12 @@ func (s *friendServer) ImportFriend(ctx context.Context, req *pbFriend.ImportFri OperationID: req.OperationID, }) } else { - resp.CommonResp.ErrorMsg = "some uid establish failed" - resp.CommonResp.ErrorCode = 408 + c.ErrorMsg = "some uid establish failed" + c.ErrorCode = 408 resp.FailedUidList = append(resp.FailedUidList, v) } } } - } resp.CommonResp = &c log.NewDebug(req.OperationID, "rpc come end", resp.CommonResp.ErrorCode, resp.CommonResp.ErrorMsg, resp.FailedUidList)