WIP: legacy config integration.

This commit is contained in:
Miroslav Šedivý 2024-07-18 18:58:40 +02:00
parent 0ee11b661a
commit b5c3f8d4a6
3 changed files with 10 additions and 3 deletions

View file

@ -28,7 +28,7 @@ type BroacastManagerCtx struct {
pipelinesActive prometheus.Gauge
}
func broadcastNew(pipelineFn func(url string) (string, error), defaultUrl string) *BroacastManagerCtx {
func broadcastNew(pipelineFn func(url string) (string, error), defaultUrl string, autostart bool) *BroacastManagerCtx {
logger := log.With().
Str("module", "capture").
Str("submodule", "broadcast").
@ -38,7 +38,7 @@ func broadcastNew(pipelineFn func(url string) (string, error), defaultUrl string
logger: logger,
pipelineFn: pipelineFn,
url: defaultUrl,
started: defaultUrl != "",
started: defaultUrl != "" && autostart,
// metrics
pipelinesCounter: promauto.NewCounter(prometheus.CounterOpts{