diff --git a/cmd/minio-decode/main.go b/cmd/minio-decode/main.go index 2a8ce2c50..29ff43e05 100644 --- a/cmd/minio-decode/main.go +++ b/cmd/minio-decode/main.go @@ -75,7 +75,7 @@ func main() { } // set up encoder - erasureParameters, _ := erasure.ValidateParams(k, m, 8, erasure.CAUCHY) + erasureParameters, _ := erasure.ParseEncoderParams(k, m, erasure.CAUCHY) // decode data decodedData, err := erasure.Decode(chunks, erasureParameters, length) diff --git a/cmd/minio-encode/main.go b/cmd/minio-encode/main.go index d8db1014e..3eaa8fe3f 100644 --- a/cmd/minio-encode/main.go +++ b/cmd/minio-encode/main.go @@ -70,7 +70,7 @@ func main() { } // set up encoder - erasureParameters, _ := erasure.ValidateParams(k, m, 8, erasure.CAUCHY) + erasureParameters, _ := erasure.ParseEncoderParams(k, m, erasure.CAUCHY) // encode data encodedData, length := erasure.Encode(input, erasureParameters)