mirror of
https://github.com/minio/minio.git
synced 2026-11-11 06:29:05 +00:00
Removing LRU from erasure package
This commit is contained in:
1 parent
d6b65f1f04
commit
9ef1ef5c8c
3 files changed
+6
-72
No files matched your search
@@ -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