Skip to content

Commit 6a499fa

Browse files
committed
rm logs
1 parent d623baf commit 6a499fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rollup/internal/controller/blob_uploader/blob_uploader.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func NewBlobUploader(ctx context.Context, db *gorm.DB, cfg *config.BlobUploaderC
6161
}
6262

6363
func (b *BlobUploader) UploadBlobToS3() {
64-
log.Info("Try to UploadBlobToS3")
6564
// get un-uploaded batches from database in ascending order by their index.
6665
dbBatch, err := b.batchOrm.GetFirstUnuploadedAndFailedBatch(b.ctx, b.cfg.StartBatch, types.BlobStoragePlatformS3)
6766
if err != nil {
@@ -98,7 +97,7 @@ func (b *BlobUploader) UploadBlobToS3() {
9897
}
9998

10099
// upload blob data to s3 bucket
101-
key := common.Bytes2Hex(versionedBlobHash[:])
100+
key := common.BytesToHash(versionedBlobHash[:]).Hex()
102101
err = b.s3Uploader.UploadData(b.ctx, blob[:], key)
103102
if err != nil {
104103
log.Error("failed to upload blob data to AWS S3", "batch index", dbBatch.Index, "versioned blob hash", key, "err", err)

0 commit comments

Comments
 (0)