Fix function name change

This commit is contained in:
Harshavardhana 2014-11-29 17:29:38 -08:00
parent 980ad3b373
commit 5074542636
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ func main() {
} }
// set up encoder // set up encoder
erasureParameters, _ := erasure.ValidateParams(k, m, 8, erasure.CAUCHY) erasureParameters, _ := erasure.ParseEncoderParams(k, m, erasure.CAUCHY)
// decode data // decode data
decodedData, err := erasure.Decode(chunks, erasureParameters, length) decodedData, err := erasure.Decode(chunks, erasureParameters, length)

View File

@ -70,7 +70,7 @@ func main() {
} }
// set up encoder // set up encoder
erasureParameters, _ := erasure.ValidateParams(k, m, 8, erasure.CAUCHY) erasureParameters, _ := erasure.ParseEncoderParams(k, m, erasure.CAUCHY)
// encode data // encode data
encodedData, length := erasure.Encode(input, erasureParameters) encodedData, length := erasure.Encode(input, erasureParameters)