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

View File

@@ -151,10 +151,7 @@ func (e *Encoder) Encode(block []byte) ([][]byte, int) {
return chunks, block_len
}
func GetEncoder(ep *EncoderParams) *Encoder {
return DefaultCache.GetC(ep)
}
func Encode(data []byte, ep *EncoderParams) (chunks [][]byte, length int) {
return GetEncoder(ep).Encode(data)
func Encode(block []byte, ep *EncoderParams) ([][]byte, int) {
encoder := NewEncoder(ep)
return encoder.Encode(block)
}