From ce8b08da8781b200e5f31dc5c4917a01c96e0de8 Mon Sep 17 00:00:00 2001 From: George Date: Wed, 4 Sep 2024 11:20:13 -0700 Subject: [PATCH] Fixups: move line, add comment --- cmd/soroban-rpc/internal/daemon/daemon.go | 2 +- cmd/soroban-rpc/internal/feewindow/feewindow.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/soroban-rpc/internal/daemon/daemon.go b/cmd/soroban-rpc/internal/daemon/daemon.go index 44cf75fa..91d62f76 100644 --- a/cmd/soroban-rpc/internal/daemon/daemon.go +++ b/cmd/soroban-rpc/internal/daemon/daemon.go @@ -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() // diff --git a/cmd/soroban-rpc/internal/feewindow/feewindow.go b/cmd/soroban-rpc/internal/feewindow/feewindow.go index d914558a..08a84ab4 100644 --- a/cmd/soroban-rpc/internal/feewindow/feewindow.go +++ b/cmd/soroban-rpc/internal/feewindow/feewindow.go @@ -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{}