Skip to content

Commit

Permalink
Merge pull request #11163 from vegaprotocol/fix-config-load-panic
Browse files Browse the repository at this point in the history
chore: stop panic when relaod config on non-validator's who don't nee…
  • Loading branch information
wwestgarth authored Apr 22, 2024
2 parents a0bf8fe + 4864d6e commit a0bcbab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/protocol/all_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,11 @@ func (svcs *allServices) registerConfigWatchers() {
func(cfg config.Config) { svcs.notary.ReloadConf(cfg.Notary) },
func(cfg config.Config) { svcs.primaryEventForwarderEngine.ReloadConf(cfg.EvtForward.Ethereum) },
func(cfg config.Config) { svcs.primaryEventForwarder.ReloadConf(cfg.EvtForward) },
func(cfg config.Config) { svcs.secondaryEventForwarderEngine.ReloadConf(cfg.EvtForward.EVMBridges[0]) },
func(cfg config.Config) {
if len(cfg.EvtForward.EVMBridges) > 0 {
svcs.secondaryEventForwarderEngine.ReloadConf(cfg.EvtForward.EVMBridges[0])
}
},
func(cfg config.Config) { svcs.topology.ReloadConf(cfg.Validators) },
func(cfg config.Config) { svcs.witness.ReloadConf(cfg.Validators) },
func(cfg config.Config) { svcs.assets.ReloadConf(cfg.Assets) },
Expand Down

0 comments on commit a0bcbab

Please sign in to comment.