wire up enable_event_publisher

This commit is contained in:
Drew Bailey
2020-10-02 15:04:05 -04:00
parent 8a57ee85f0
commit e7e6df394f
7 changed files with 20 additions and 2 deletions

View File

@@ -94,6 +94,7 @@ func (c *Command) readConfig() *Config {
flags.Var((*flaghelper.StringFlag)(&cmdConfig.Server.ServerJoin.StartJoin), "join", "")
flags.Var((*flaghelper.StringFlag)(&cmdConfig.Server.ServerJoin.RetryJoin), "retry-join", "")
flags.IntVar(&cmdConfig.Server.ServerJoin.RetryMaxAttempts, "retry-max", 0, "")
flags.BoolVar(&cmdConfig.Server.EnableEventPublisher, "event-publisher", false, "")
flags.Var((flaghelper.FuncDurationVar)(func(d time.Duration) error {
cmdConfig.Server.ServerJoin.RetryInterval = d
return nil