0chain / s3-migration

This program helps to migrate files in s3/s3-compatible buckets to 0chain dStorage.
MIT License
0 stars 1 forks source link

Fix misbehaving error worker #95

Closed sunilmhta closed 1 year ago

sunilmhta commented 1 year ago

closes #90 Currently sometimes the error worker do not report the failure in migration and instead it returns a "migration successful" message even for the cases where the migration should have failed. Fixing this by waiting for the DownloadWorker goroutine to finish before returning from migrate cmd.