func setupRunConfigDefaults(c *RunConfig) { if c.GracefulShutdownTimeoutSecs == 0 { c.GracefulShutdownTimeoutSecs = defaultGracefulShutdownTimeoutSecs } if c.Logger == nil { c.Logger = logging.NewNilLogger() } }
func setupServiceConfigDefaults(c *ServiceConfig) { if c.RestartDelaySecs == 0 { c.RestartDelaySecs = 1 } if c.Logger == nil { c.Logger = logging.NewNilLogger() } }