diff --git a/opts.go b/opts.go index 5dd3f22b..202b351f 100644 --- a/opts.go +++ b/opts.go @@ -71,7 +71,7 @@ func WithSnapshot(memFilePath, snapshotPath string, opts ...WithSnapshotOpt) Opt opt(&m.Cfg.Snapshot) } - m.Handlers.Validation = m.Handlers.Validation.Append(LoadSnapshotConfigValidationHandler) + m.Handlers.Validation = m.Handlers.Validation.Remove(ValidateCfgHandlerName).Append(LoadSnapshotConfigValidationHandler) m.Handlers.FcInit = modifyHandlersForLoadSnapshot(m.Handlers.FcInit) } }