diff --git a/cmd/run.go b/cmd/run.go index edced85..60a1b49 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -53,7 +53,7 @@ var runCmd = &cobra.Command{ ctx := notification.WithContextFallback(cmd.Context(), notifier) // initialize daemon (fetch initial state and run basic sanity checks) - if err := d.Init(ctx, cfg, BinVersion); err != nil { + if err := d.Init(ctx, cfg); err != nil { return errors.Wrapf(err, "failed to initialize daemon") } diff --git a/internal/pkg/daemon/daemon.go b/internal/pkg/daemon/daemon.go index 6dfe4a0..b05bccb 100644 --- a/internal/pkg/daemon/daemon.go +++ b/internal/pkg/daemon/daemon.go @@ -111,7 +111,7 @@ func NewDaemon(ctx context.Context, cfg *config.Config, m *metrics.Metrics) (*Da }, nil } -func (d *Daemon) Init(ctx context.Context, cfg *config.Config, version string) error { +func (d *Daemon) Init(ctx context.Context, cfg *config.Config) error { logger := log.FromContext(ctx).With("package", "daemon") logger.Info("Starting up blazar daemon...")