Commit db4a9584 authored by Andreas Bigger's avatar Andreas Bigger

Fix nits

parent 5f00fa17
...@@ -57,8 +57,6 @@ func NewAgent(m metrics.Metricer, addr common.Address, loader ClaimLoader, maxDe ...@@ -57,8 +57,6 @@ func NewAgent(m metrics.Metricer, addr common.Address, loader ClaimLoader, maxDe
// Act iterates the game & performs all of the next actions. // Act iterates the game & performs all of the next actions.
func (a *Agent) Act(ctx context.Context) error { func (a *Agent) Act(ctx context.Context) error {
if a.tryResolve(ctx) { if a.tryResolve(ctx) {
// Zero out the game claim count since the game will no longer be tracked once resolved.
a.metrics.RecordGameClaimCount(a.fdgAddr.String(), 0)
return nil return nil
} }
game, err := a.newGameFromContracts(ctx) game, err := a.newGameFromContracts(ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment