mirror of https://github.com/minio/minio.git
Merge pull request #356 from harshavardhana/pr_out_erasure_technique_is_now_uint8_handle_it_appropriately
This commit is contained in:
commit
4c7a61a68d
|
@ -31,6 +31,7 @@ type Technique uint8
|
|||
const (
|
||||
Vandermonde Technique = iota
|
||||
Cauchy
|
||||
None
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue