Compare commits

..

1 Commits

Author SHA1 Message Date
georgehao
22f546ddbb feat: update 2024-04-01 22:26:12 +08:00

View File

@@ -96,7 +96,7 @@ func (o *Batch) GetAssignedBatch(ctx context.Context, maxActiveAttempts, maxTota
int(types.ProvingTaskAssigned), maxTotalAttempts, maxActiveAttempts, int(types.ChunkProofsStatusReady))
err := db.Raw(sql).Scan(&batch).Error
if err != nil {
return nil, fmt.Errorf("Batch.GetAssignedBatches error: %w", err)
return nil, fmt.Errorf("Batch.GetAssignedBatch error: %w", err)
}
if batch.Hash == "" {
return nil, nil