Skip to content

Commit 8ac3181

Browse files
committed
fix: typo
1 parent c4c765f commit 8ac3181

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rollup/internal/orm/batch.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,20 +273,20 @@ func (o *Batch) GetFirstUnuploadedBatchByPlatform(ctx context.Context, startBatc
273273
db = db.Limit(1)
274274

275275
var blobUpload BlobUpload
276-
var BatchIndex uint64
276+
var batchIndex uint64
277277
if err := db.First(&blobUpload).Error; err != nil {
278278
if errors.Is(err, gorm.ErrRecordNotFound) {
279-
BatchIndex = startBatch
279+
batchIndex = startBatch
280280
} else {
281281
return nil, fmt.Errorf("Batch.GetLatestSuccessfulBlobUploadIndex error: %w", err)
282282
}
283283
} else {
284-
BatchIndex = blobUpload.BatchIndex + 1
284+
batchIndex = blobUpload.BatchIndex + 1
285285
}
286286

287-
batch, err := o.GetBatchByIndex(ctx, BatchIndex)
287+
batch, err := o.GetBatchByIndex(ctx, batchIndex)
288288
if err != nil || len(batch.CommitTxHash) == 0 {
289-
log.Debug("got batch not ready for blob uploading", "batch_index", batch.Index, "platform", platform.String())
289+
log.Debug("got batch not ready for blob uploading", "batch_index", batchIndex, "platform", platform.String())
290290
return nil, nil
291291
}
292292

0 commit comments

Comments
 (0)