Skip to content

Commit

Permalink
Merge pull request #99 from 0chain/fix/chunk-num
Browse files Browse the repository at this point in the history
Fix default chunk number
  • Loading branch information
dabasov committed Nov 26, 2023
2 parents e9b9066 + 4a514fe commit 4454048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func init() {
migrateCmd.Flags().StringVar(&newerThanStr, "newer-than", "", "eg; 7d10h --> migrate objects that is newer than 7 days 10 hours")
migrateCmd.Flags().StringVar(&olderThanStr, "older-than", "", "eg; 7d10h --> migrate objects that is older than 7 days 10 hours")
migrateCmd.Flags().Int64Var(&chunkSize, "chunk-size", 50*1024*1024, "chunk size in bytes")
migrateCmd.Flags().IntVar(&chunkNumber, "chunk-number", 1000, "number of chunks to upload")
migrateCmd.Flags().IntVar(&chunkNumber, "chunk-number", 250, "number of chunks to upload")
migrateCmd.Flags().IntVar(&batchSize, "batch-size", 30, "number of files to upload in a batch")

}
Expand Down
2 changes: 1 addition & 1 deletion migration/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func InitMigration(mConfig *MigrationConfig) error {
zlogger.Logger.Error(err)
return err
}

mConfig.ChunkSize = dStorageService.GetChunkWriteSize()
zlogger.Logger.Info("Getting aws storage service")
awsStorageService, err := s3.GetAwsClient(
mConfig.Bucket,
Expand Down

0 comments on commit 4454048

Please sign in to comment.