Skip to content

Commit

Permalink
Fixups: move line, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Sep 4, 2024
1 parent dce46af commit ce8b08d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/internal/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,11 @@ func (d *Daemon) mustInitializeStorage(cfg *config.Config) *feewindow.FeeWindows
// means the final range is only the fee stat analysis range.
//
feeStatsRange, err := db.GetMigrationLedgerRange(readTxMetaCtx, d.db, maxFeeRetentionWindow)
dataMigrations.Append(feeWindows.AsMigration(feeStatsRange))
if err != nil {
d.logger.WithError(err).Fatal("could not get ledger range for fee stats")
}

dataMigrations.Append(feeWindows.AsMigration(feeStatsRange))
ledgerSeqRange := dataMigrations.ApplicableRange()

//
Expand Down
1 change: 1 addition & 0 deletions cmd/soroban-rpc/internal/feewindow/feewindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,5 @@ func (fw *feeWindowMigration) Commit(_ context.Context) error {
return nil // no-op
}

// ensure we conform to the migration interface
var _ db.Migration = &feeWindowMigration{}

0 comments on commit ce8b08d

Please sign in to comment.