From 572498f954e196ec4805b6143b3f4e0694d18595 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Sun, 29 Aug 2021 11:57:37 -0700 Subject: [PATCH] Fix deep source complains (#9485) --- beacon-chain/core/altair/epoch_precompute.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/beacon-chain/core/altair/epoch_precompute.go b/beacon-chain/core/altair/epoch_precompute.go index ff0dbeb75..bf94ef7c3 100644 --- a/beacon-chain/core/altair/epoch_precompute.go +++ b/beacon-chain/core/altair/epoch_precompute.go @@ -16,7 +16,7 @@ import ( // pre computed instances of validators attesting records and total // balances attested in an epoch. func InitializeEpochValidators(ctx context.Context, st state.BeaconStateAltair) ([]*precompute.Validator, *precompute.Balance, error) { - ctx, span := trace.StartSpan(ctx, "altair.InitializeEpochValidators") + _, span := trace.StartSpan(ctx, "altair.InitializeEpochValidators") defer span.End() pValidators := make([]*precompute.Validator, st.NumValidators()) bal := &precompute.Balance{} @@ -73,6 +73,9 @@ func ProcessInactivityScores( state state.BeaconState, vals []*precompute.Validator, ) (state.BeaconState, []*precompute.Validator, error) { + _, span := trace.StartSpan(ctx, "altair.ProcessInactivityScores") + defer span.End() + cfg := params.BeaconConfig() if helpers.CurrentEpoch(state) == cfg.GenesisEpoch { return state, vals, nil @@ -132,7 +135,7 @@ func ProcessEpochParticipation( bal *precompute.Balance, vals []*precompute.Validator, ) ([]*precompute.Validator, *precompute.Balance, error) { - ctx, span := trace.StartSpan(ctx, "altair.ProcessEpochParticipation") + _, span := trace.StartSpan(ctx, "altair.ProcessEpochParticipation") defer span.End() cp, err := state.CurrentEpochParticipation()