cfg: move experimental options to main protocol cfg

This commit is contained in:
Orbital committed 2024-05-16 17:16:50 -05:00
1 parent 9d358bc649
commit e8196c6feb
8 files changed
+135 -61

No files matched your search

+1 -2
View File
@@ -1667,8 +1667,7 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser,
// If the experimental protocol options specify any protocol messages
// that we want to handle as custom messages, set them now.
//nolint:lll
customMsg := cfg.ProtocolOptions.ExperimentalProtocol.CustomMessageOverrides()
customMsg := cfg.ProtocolOptions.CustomMessageOverrides()
// We can safely set our custom override values during startup because
// startup is blocked on config parsing.