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 ( const (
Vandermonde Technique = iota Vandermonde Technique = iota
Cauchy Cauchy
None
) )
const ( const (

View File

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