Make use of LRU and higher order erasure functions

This commit is contained in:
Harshavardhana
2014-11-24 07:16:48 -08:00
parent 95e2e472cd
commit 6592ef3bd2
6 changed files with 12 additions and 18 deletions
+2 -2
View File
@@ -200,10 +200,10 @@ func (e *Encoder) Encode(block []byte) ([][]byte, int) {
return chunks, block_len
}
func GetEncoder(ep EncoderParams) *Encoder {
func GetEncoder(ep *EncoderParams) *Encoder {
return DefaultCache.GetC(ep)
}
func Encode(data []byte, ep EncoderParams) (chunks [][]byte, length int) {
func Encode(data []byte, ep *EncoderParams) (chunks [][]byte, length int) {
return GetEncoder(ep).Encode(data)
}