Skip to content

Commit

Permalink
Merge pull request #139 from Viva-con-Agua/main
Browse files Browse the repository at this point in the history
backport hotfix context
  • Loading branch information
TobiKaestle authored Aug 4, 2023
2 parents a77c7c6 + 3bd3b30 commit 4f35abb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dao/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func DepositUpdate(ctx context.Context, i *models.DepositUpdate, token *vcapool.
return
}

ctx = context.Background()
if i.Status == "confirmed" {
go func() {

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4f35abb

Please sign in to comment.