Skip to content

Commit

Permalink
fix: bad deadlock error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 16, 2024
1 parent 13538d1 commit a5188ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/ledger/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func (s *Store) UpsertAccount(ctx context.Context, account *ledger.Account) (boo
upserted = rowsModified > 0
return nil
})
return upserted, err
return upserted, postgres.ResolveError(err)
}, func(ctx context.Context, upserted bool) {
trace.SpanFromContext(ctx).SetAttributes(
attribute.String("address", account.Address),
Expand Down

0 comments on commit a5188ad

Please sign in to comment.