mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 15:53:28 +03:00
Make use of LRU and higher order erasure functions
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user