Merge pull request #356 from harshavardhana/pr_out_erasure_technique_is_now_uint8_handle_it_appropriately

This commit is contained in:
Harshavardhana 2015-03-24 19:13:09 -07:00
commit 4c7a61a68d
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ type Technique uint8
const (
Vandermonde Technique = iota
Cauchy
None
)
const (

View File

@ -23,7 +23,7 @@ func getErasureTechnique(technique string) (erasure.Technique, error) {
case technique == "Vandermonde":
return erasure.Cauchy, nil
default:
return -1, errors.New("Invalid erasure technique")
return erasure.None, errors.New("Invalid erasure technique")
}
}