Skip to content

Commit

Permalink
Remove unused parameter from daemon.Init
Browse files Browse the repository at this point in the history
  • Loading branch information
sin3point14 committed Dec 12, 2024
1 parent 72a17e3 commit bb2e0b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ type Daemon struct {

// initial counters
startupHeight int64
nodeAddress bytes.HexBytes

// node information
nodeAddress bytes.HexBytes
nodeInfo *tmservice.GetNodeInfoResponse
validatorAddress string
chainId string

Check warning on line 56 in internal/pkg/daemon/daemon.go

View workflow job for this annotation

GitHub Actions / lint

var-naming: struct field chainId should be chainID (revive)
Expand Down Expand Up @@ -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...")

Expand Down

0 comments on commit bb2e0b3

Please sign in to comment.