mirror of
https://github.com/minio/minio.git
synced 2026-11-13 22:45:16 +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
@@ -108,6 +108,7 @@ func (e *Encoder) Decode(chunks [][]byte, length int) ([]byte, error) {
|
||||
return recovered_output[:length], nil
|
||||
}
|
||||
|
||||
func Decode(chunks [][]byte, ep *EncoderParams, length int) (block []byte, err error) {
|
||||
return GetEncoder(ep).Decode(chunks, length)
|
||||
func Decode(block [][]byte, ep *EncoderParams, length int) ([]byte, error) {
|
||||
encoder := NewEncoder(ep)
|
||||
return encoder.Decode(block, length)
|
||||
}
|
||||
Reference in new issue
Block a user