From a5188ad554f181cdce63f2e17ed22d26746433e7 Mon Sep 17 00:00:00 2001 From: Geoffrey Ragot Date: Fri, 4 Oct 2024 09:41:53 +0200 Subject: [PATCH] fix: bad deadlock error handling --- internal/storage/ledger/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/storage/ledger/accounts.go b/internal/storage/ledger/accounts.go index 2bfa52228..18f0c8e5c 100644 --- a/internal/storage/ledger/accounts.go +++ b/internal/storage/ledger/accounts.go @@ -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),