fix: ensure m.root.Core.Clustered is not nil

This commit is contained in:
Derrick Hammer 2024-02-28 09:45:34 -05:00
parent 80d34000a0
commit 0ae69e5ba1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}