Skip to content

Commit

Permalink
unify naming
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed May 9, 2024
1 parent ab2be92 commit a647035
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/setup_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func SetupHandlers(app *App) {
}

_, useDevelopTracker := os.LookupEnv("ZETACORED_USE_DEVELOP_UPGRADE_TRACKER")
versionModifierFns, storeUpgrades, err := allUpgrades.getUpgrades(useDevelopTracker)
upgradeHandlerFns, storeUpgrades, err := allUpgrades.getUpgrades(useDevelopTracker)
if err != nil {
panic(err)

Check warning on line 40 in app/setup_handlers.go

View check run for this annotation

Codecov / codecov/patch

app/setup_handlers.go#L37-L40

Added lines #L37 - L40 were not covered by tests
}
Expand All @@ -44,8 +44,8 @@ func SetupHandlers(app *App) {
app.Logger().Info("Running upgrade handler for " + releaseVersion)

var err error
for _, vmFn := range versionModifierFns {
vm, err = vmFn(ctx, vm)
for _, upgradeHandler := range upgradeHandlerFns {
vm, err = upgradeHandler(ctx, vm)
if err != nil {
return vm, err

Check warning on line 50 in app/setup_handlers.go

View check run for this annotation

Codecov / codecov/patch

app/setup_handlers.go#L46-L50

Added lines #L46 - L50 were not covered by tests
}
Expand Down

0 comments on commit a647035

Please sign in to comment.