Skip to content

Commit

Permalink
fix(coordinator): fix the error in the incorrect call during database… (
Browse files Browse the repository at this point in the history
#1576)

Co-authored-by: xiaoranlu <[email protected]>
  • Loading branch information
Hsiao-Jan and xiaoranlu authored Dec 17, 2024
1 parent 33b1b3c commit 45b23ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coordinator/internal/logic/provertask/batch_prover_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (bp *BatchProverTask) formatProverTask(ctx context.Context, task *orm.Prove
}

func (bp *BatchProverTask) recoverActiveAttempts(ctx *gin.Context, batchTask *orm.Batch) {
if err := bp.chunkOrm.DecreaseActiveAttemptsByHash(ctx.Copy(), batchTask.Hash); err != nil {
if err := bp.batchOrm.DecreaseActiveAttemptsByHash(ctx.Copy(), batchTask.Hash); err != nil {
log.Error("failed to recover batch active attempts", "hash", batchTask.Hash, "error", err)
}
}
Expand Down

0 comments on commit 45b23ed

Please sign in to comment.