Skip to content

Commit

Permalink
Rename SYNC_SIZE env var to SYNC_SIZE_BYTES
Browse files Browse the repository at this point in the history
Avoid that there is confusion about the unit used.
  • Loading branch information
hsanjuan committed Jan 19, 2022
1 parent 368fcab commit ff44fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs-repo-11-to-12/migration/swapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var NWorkers int = 4

func init() {
workerEnvVar := "IPFS_FS_MIGRATION_11_TO_12_NWORKERS"
syncSizeEnvVar := "IPFS_FS_MIGRATION_11_TO_12_SYNC_SIZE"
syncSizeEnvVar := "IPFS_FS_MIGRATION_11_TO_12_SYNC_SIZE_BYTES"
if nworkersStr, nworkerInEnv := os.LookupEnv(workerEnvVar); nworkerInEnv {
nworkers, err := strconv.Atoi(nworkersStr)
if err != nil {
Expand Down

0 comments on commit ff44fe3

Please sign in to comment.