@@ -839,7 +839,7 @@ func shouldUpgrade(cfg config.Wrapper, runtimeOptions RuntimeOptions) bool {
|
|||||||
if upgrade.DisabledByCompilation {
|
if upgrade.DisabledByCompilation {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if opts := cfg.Options(); opts.AutoUpgradeIntervalH < 0 {
|
if !cfg.Options().ShouldAutoUpgrade() {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if runtimeOptions.NoUpgrade {
|
if runtimeOptions.NoUpgrade {
|
||||||
|
|||||||
@@ -200,3 +200,7 @@ func (opts OptionsConfiguration) MaxConcurrentIncomingRequestKiB() int {
|
|||||||
// Roll with it.
|
// Roll with it.
|
||||||
return opts.RawMaxCIRequestKiB
|
return opts.RawMaxCIRequestKiB
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (opts OptionsConfiguration) ShouldAutoUpgrade() bool {
|
||||||
|
return opts.AutoUpgradeIntervalH > 0
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user