Merge pull request #50 from fkautz/pr_out_removing_lru_from_erasure_package

Removing LRU from erasure package
This commit is contained in:
Harshavardhana
2014-11-29 14:39:07 -08:00
3 changed files with 6 additions and 72 deletions
+3 -2
View File
@@ -111,6 +111,7 @@ func (e *Encoder) Decode(chunks [][]byte, length int) ([]byte, error) {
return recovered_output[:length], nil
}
func Decode(chunks [][]byte, ep *EncoderParams, length int) (block []byte, err error) {
return GetEncoder(ep).Decode(chunks, length)
func Decode(block [][]byte, ep *EncoderParams, length int) ([]byte, error) {
encoder := NewEncoder(ep)
return encoder.Decode(block, length)
}