Skip to content

Commit

Permalink
Merge pull request #138 from Viva-con-Agua/tk_hofix/context
Browse files Browse the repository at this point in the history
Tk hofix/context
  • Loading branch information
TobiKaestle authored Aug 4, 2023
2 parents 5065845 + 7fd5e31 commit 3bd3b30
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 3bd3b30

Please sign in to comment.