From ce78f5bfa3c0d9a8bff867a414cde6b6d846a039 Mon Sep 17 00:00:00 2001 From: Tobi Ka Date: Fri, 4 Aug 2023 16:01:59 +0200 Subject: [PATCH 1/2] set context background --- dao/deposit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dao/deposit.go b/dao/deposit.go index e59f12c..3351989 100644 --- a/dao/deposit.go +++ b/dao/deposit.go @@ -193,7 +193,7 @@ func DepositSync(ctx context.Context, i *models.DepositParam, token *vcapool.Acc if result.Status != "confirmed" { return nil, vcago.NewBadRequest("deposit", "deposit_confirmed_failure", nil) } - + ctx = context.Background() go func() { for _, unit := range result.DepositUnit { event := new(models.EventUpdate) From 7fd5e31427df290abe18ab500280bbddf2849e5e Mon Sep 17 00:00:00 2001 From: Tobi Ka Date: Fri, 4 Aug 2023 16:02:21 +0200 Subject: [PATCH 2/2] set context background --- dao/deposit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dao/deposit.go b/dao/deposit.go index 3351989..6a00795 100644 --- a/dao/deposit.go +++ b/dao/deposit.go @@ -111,6 +111,7 @@ func DepositUpdate(ctx context.Context, i *models.DepositUpdate, token *vcapool. return } + ctx = context.Background() if i.Status == "confirmed" { go func() {