Skip to content

Commit

Permalink
refactor: Remove unnecessary variable "dutiesStarted"
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jul 20, 2023
1 parent f28136d commit 3072ffb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pkg/sentry/ethereum/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type BeaconNode struct {
services []services.Service

onReadyCallbacks []func(ctx context.Context) error
dutiesStarted bool
}

func NewBeaconNode(ctx context.Context, name string, config *Config, log logrus.FieldLogger) (*BeaconNode, error) {
Expand All @@ -47,11 +46,10 @@ func NewBeaconNode(ctx context.Context, name string, config *Config, log logrus.
}

return &BeaconNode{
config: config,
log: log.WithField("module", "sentry/ethereum/beacon"),
beacon: node,
services: svcs,
dutiesStarted: false,
config: config,
log: log.WithField("module", "sentry/ethereum/beacon"),
beacon: node,
services: svcs,
}, nil
}

Expand Down Expand Up @@ -104,7 +102,6 @@ func (b *BeaconNode) Start(ctx context.Context) error {
case <-ctx.Done():
return ctx.Err()
}

}

func (b *BeaconNode) Node() beacon.Node {
Expand Down

0 comments on commit 3072ffb

Please sign in to comment.