A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(context): remove context background
LinkinStars4f835e384177
diff --git a/internal/service/notification_common/notification.go b/internal/service/notification_common/notification.goindex d7ab6810..ed7001a9 100644--- a/internal/service/notification_common/notification.go+++ b/internal/service/notification_common/notification.go@@ -163,7 +163,7 @@ func (ns *NotificationCommon) AddNotification(ctx context.Context, msg *schema.Nlog.Error("addRedDot Error", err.Error())}- go ns.SendNotificationToAllFollower(context.Background(), msg, questionID)+ go ns.SendNotificationToAllFollower(ctx, msg, questionID)return nil}diff --git a/internal/service/user_service.go b/internal/service/user_service.goindex bc3ded27..582a4cb1 100644--- a/internal/service/user_service.go+++ b/internal/service/user_service.go@@ -606,7 +606,7 @@ func (us *UserService) UserChangeEmailSendCode(ctx context.Context, req *schema.}log.Infof("send email confirmation %s", verifyEmailURL)- go us.emailService.SendAndSaveCode(context.Background(), req.Email, title, body, code, data.ToJSONString())+ go us.emailService.SendAndSaveCode(ctx, req.Email, title, body, code, data.ToJSONString())return nil, nil}