mirror of
https://github.com/minio/minio.git
synced 2025-12-05 15:22:28 -05:00
Merge pull request #50 from fkautz/pr_out_removing_lru_from_erasure_package
Removing LRU from erasure package
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user