Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Aug 24, 2022
1 parent d2251f0 commit 174b623
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/exporter/consensus/jobs/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (b *Beacon) handleBlockInserted(ctx context.Context, event *beacon.BlockIns
return err
}

// nolint:gocritic // False positive
//nolint:gocritic // False positive
if err = b.handleSingleBlock("head", timedBlock.Block); err != nil {
return err
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/exporter/consensus/jobs/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,16 +290,16 @@ func (s *Spec) observeSpec(ctx context.Context, spec *state.Spec) error {
s.SafeSlotsToUpdateJustified.Set(float64(spec.SafeSlotsToUpdateJustified))
s.DepositChainID.Set(float64(spec.DepositChainID))
s.MaxValidatorsPerCommittee.Set(float64(spec.MaxValidatorsPerCommittee))
// nolint:unconvert // false positive
//nolint:unconvert // false positive
s.SecondsPerEth1Block.Set(float64(spec.SecondsPerEth1Block.Seconds()))
s.BaseRewardFactor.Set(float64(spec.BaseRewardFactor))
s.EpochsPerSyncCommitteePeriod.Set(float64(spec.EpochsPerSyncCommitteePeriod))
s.EffectiveBalanceIncrement.Set(float64(spec.EffectiveBalanceIncrement))
s.MaxAttestations.Set(float64(spec.MaxAttestations))
s.MinSyncCommitteeParticipants.Set(float64(spec.MinSyncCommitteeParticipants))
// nolint:unconvert // false positive
//nolint:unconvert // false positive
s.GenesisDelay.Set(float64(spec.GenesisDelay.Seconds()))
// nolint:unconvert // false positive
//nolint:unconvert // false positive
s.SecondsPerSlot.Set(float64(spec.SecondsPerSlot.Seconds()))
s.MaxEffectiveBalance.Set(float64(spec.MaxEffectiveBalance))
s.MaxDeposits.Set(float64(spec.MaxDeposits))
Expand Down

0 comments on commit 174b623

Please sign in to comment.