diff options
Diffstat (limited to 'modules/setting/migrations.go')
-rw-r--r-- | modules/setting/migrations.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/migrations.go b/modules/setting/migrations.go index 2f6d08b6b8..5a6079b6e2 100644 --- a/modules/setting/migrations.go +++ b/modules/setting/migrations.go @@ -16,8 +16,8 @@ var Migrations = struct { RetryBackoff: 3, } -func newMigrationsService() { - sec := Cfg.Section("migrations") +func loadMigrationsFrom(rootCfg ConfigProvider) { + sec := rootCfg.Section("migrations") Migrations.MaxAttempts = sec.Key("MAX_ATTEMPTS").MustInt(Migrations.MaxAttempts) Migrations.RetryBackoff = sec.Key("RETRY_BACKOFF").MustInt(Migrations.RetryBackoff) |