diff --git a/dao/deposit.go b/dao/deposit.go index e59f12c..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() { @@ -193,7 +194,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)