Skip to content

Commit

Permalink
Merge branch 'main' into e2e-caching
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio authored Jul 9, 2024
2 parents 01d7fd7 + 665aa86 commit d4c39b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/internal/db/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func newGuardedDataMigration(
return nil, err
}
latestLedger, err := NewLedgerEntryReader(db).GetLatestLedgerSequence(ctx)
if errors.Is(err, ErrEmptyDB) {
if err != nil && !errors.Is(err, ErrEmptyDB) {
err = errors.Join(err, migrationDB.Rollback())
return nil, fmt.Errorf("failed to get latest ledger sequence: %w", err)
}
Expand Down

0 comments on commit d4c39b8

Please sign in to comment.