Removing LRU from erasure package

This commit is contained in:
Frederick F. Kautz IV
2014-11-29 13:39:30 -08:00
parent d6b65f1f04
commit 9ef1ef5c8c
3 changed files with 6 additions and 72 deletions

View File

@@ -201,10 +201,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)
}