fix: ensure m.root.Core.Clustered is not nil
This commit is contained in:
parent
80d34000a0
commit
0ae69e5ba1
|
@ -214,7 +214,7 @@ func (m *Manager) maybeSave() error {
|
|||
}
|
||||
|
||||
func (m *Manager) maybeConfigureCluster() error {
|
||||
if m.root.Core.Clustered.Enabled {
|
||||
if m.root.Core.Clustered != nil && m.root.Core.Clustered.Enabled {
|
||||
m.root.Core.DB.Cache.Mode = "redis"
|
||||
m.root.Core.DB.Cache.Options = m.root.Core.Clustered.Redis
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue