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 (
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…
Cancel
Save