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