Skip to content

Commit

Permalink
Remove an unused context and error
Browse files Browse the repository at this point in the history
  • Loading branch information
eljobe committed Nov 20, 2024
1 parent 64e8d6a commit 50f13bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions challenge-manager/challenges.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ func (m *Manager) HandleCorrectRival(ctx context.Context, riv protocol.Assertion
if challengeSubmitted {
challengeSubmittedCounter.Inc(1)
}
if err := m.logChallengeConfigs(ctx); err != nil {
log.Error("Could not log challenge configs", "err", err)
}
m.logChallengeConfigs()
return nil
}

Expand Down
3 changes: 1 addition & 2 deletions challenge-manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (m *Manager) LatestAgreedState(ctx context.Context) (protocol.GoGlobalState
return protocol.GoExecutionStateFromSolidity(info.AfterState).GlobalState, nil
}

func (m *Manager) logChallengeConfigs(ctx context.Context) error {
func (m *Manager) logChallengeConfigs() {
cm := m.chain.SpecChallengeManager()
bigStepNum := cm.NumBigSteps()
challengePeriodBlocks := cm.ChallengePeriodBlocks()
Expand All @@ -414,5 +414,4 @@ func (m *Manager) logChallengeConfigs(ctx context.Context) error {
"challengePeriodBlocks", challengePeriodBlocks,
"layerZeroHeights", layerZeroHeights,
)
return nil
}

0 comments on commit 50f13bc

Please sign in to comment.