forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

appview: state: start posthog notifier only on dev mode

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>

Changed files
+5 -3
appview
state
+5 -3
appview/state/state.go
···
}
spindlestream.Start(ctx)
-
notifier := notify.NewMergedNotifier(
-
posthog_service.NewPosthogNotifier(posthog),
-
)
+
var notifiers []notify.Notifier
+
if !config.Core.Dev {
+
notifiers = append(notifiers, posthog_service.NewPosthogNotifier(posthog))
+
}
+
notifier := notify.NewMergedNotifier(notifiers...)
state := &State{
d,