Skip to content

Commit 4ae4645

Browse files
author
xiaoranlu
committed
fix(coordinator): fix the error in the incorrect call during database modification
1 parent 33b1b3c commit 4ae4645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coordinator/internal/logic/provertask/batch_prover_task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (bp *BatchProverTask) formatProverTask(ctx context.Context, task *orm.Prove
232232
}
233233

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

0 commit comments

Comments
 (0)