From 3106f671af34a6a89ad38e5b01919ca0b1795232 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 24 Feb 2023 10:41:34 +0800 Subject: [PATCH] config path --- internal/push/getui/push.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/push/getui/push.go b/internal/push/getui/push.go index 461956675..02436a8d3 100644 --- a/internal/push/getui/push.go +++ b/internal/push/getui/push.go @@ -70,8 +70,9 @@ func (g *Client) Push(ctx context.Context, userIDs []string, title, content stri for i, v := range s.GetSplitResult() { go func(index int, userIDs []string) { defer wg.Done() - if err = g.batchPush(ctx, token, userIDs, pushReq); err != nil { + if err2 := g.batchPush(ctx, token, userIDs, pushReq); err2 != nil { log.NewError(tracelog.GetOperationID(ctx), "batchPush failed", i, token, pushReq) + err = err2 } }(i, v.Item) }