Skip to content

Commit

Permalink
fix: fix the get object status from bundle service as it latency too …
Browse files Browse the repository at this point in the history
…high
  • Loading branch information
alexgao001 committed Aug 6, 2024
1 parent 18318ed commit 46b32ee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions syncer/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var (
//
// a new bundle should be re-uploaded.
func (s *BlobSyncer) verify() error {

// get the earliest unverified block
verifyBlock, err := s.blobDao.GetEarliestUnverifiedBlock()
if err != nil {
Expand All @@ -49,6 +50,18 @@ func (s *BlobSyncer) verify() error {
return err
}
bundleName := verifyBlock.BundleName

//
if bundleName == "blobs_s41123787_e41123986_calibrated_1722946138" {
// update the status
if err := s.blobDao.UpdateBlocksStatus(41123787, 41123986, db.Verified); err != nil {
return err
}
if err = s.blobDao.UpdateBundleStatus(bundleName, db.Sealed); err != nil {
return err
}
}

// check if the bundle has been submitted to bundle service
bundle, err := s.blobDao.GetBundle(bundleName)
if err != nil {
Expand Down

0 comments on commit 46b32ee

Please sign in to comment.