Skip to content

Commit

Permalink
fix typo and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 committed Jul 4, 2024
1 parent 998e9a2 commit 93c8b06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type SyncerConfig struct {
TempDir string `json:"temp_dir"` // TempDir is used to store blobs and created bundle
PrivateKey string `json:"private_key"` // PrivateKey is the key of bucket owner, request to bundle service will be signed by it as well.
BundleNotSealedReuploadThreshold int64 `json:"bundle_not_sealed_reupload_threshold"` // BundleNotSealedReuploadThreshold for re-uploading a bundle if it cant be sealed within the time threshold.
EnableIndivBlobVerification bool `json:"enable_indiv_blob_verification"` // EnableIndivBlobVerification is used to enable individual blob verification, otherwise only bundle level verification is enabled.
EnableIndivBlobVerification bool `json:"enable_indiv_blob_verification"` // EnableIndivBlobVerification is used to enable individual blob verification, otherwise only bundle level verification is performed.
DBConfig DBConfig `json:"db_config"`
MetricsConfig MetricsConfig `json:"metrics_config"`
LogConfig LogConfig `json:"log_config"`
Expand Down
2 changes: 1 addition & 1 deletion syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (s *BlobSyncer) toBlockAndBlobs(blockResp *structs.GetBlockV2Response, side

rootBz, err := hexutil.Decode(header.Data.Root)
if err != nil {
logging.Logger.Errorf("failed to decode header.Data.GetObjectInfoResponse=%s, err=%s", header.Data.Root, err.Error())
logging.Logger.Errorf("failed to decode header.Data.Root=%s, err=%s", header.Data.Root, err.Error())
return nil, nil, err
}
sigBz, err := hexutil.Decode(header.Data.Header.Signature)
Expand Down
2 changes: 1 addition & 1 deletion syncer/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (s *BlobSyncer) verify() error {
}

// verifyBundleIntegrity is used to verify the integrity of a bundle by comparing the checksums of the re-constructed bundle object and the on-chain object.
// If the checksums are not equal, the bundle will be re-uploaded.
// If the checksums are not equal, the bundle will be re-uploaded, and the re-uploaded bundle will be verified as well, until the verification is successful.
func (s *BlobSyncer) verifyBundleIntegrity(bundleName string, bundleStartBlockID, bundleEndBlockID uint64) error {
// recreate the bundle for the block range
verifyBundleName := bundleName + "_verify"
Expand Down

0 comments on commit 93c8b06

Please sign in to comment.