Skip to content

Commit 850bd4a

Browse files
Hsiao-Janxiaoranlu
authored andcommitted
fix(coordinator): fix the error in the incorrect call during database… (scroll-tech#1576)
Co-authored-by: xiaoranlu <[email protected]>
1 parent 33b1b3c commit 850bd4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/database/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type gormLogger struct {
1919
gethLogger log.Logger
2020
}
2121

22-
func (g *gormLogger) LogMode(level logger.LogLevel) logger.Interface {
22+
func (g *gormLogger) LogMode(logger.LogLevel) logger.Interface {
2323
return g
2424
}
2525

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)