Erasure technique is now uint8, handle it appropriately

master
Harshavardhana 10 years ago
parent 7d25490a2e
commit 653ea50a59
  1. 1
      pkg/encoding/erasure/erasure_encode.go
  2. 2
      pkg/storage/donut/erasure.go

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

@ -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")
} }
} }

Loading…
Cancel
Save