Make bytesPipe use linear allocations
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
46b458fe3b
commit
3c6dcfb6ca
3 changed files with 120 additions and 57 deletions
|
@ -5,12 +5,8 @@ import (
|
|||
"encoding/hex"
|
||||
"io"
|
||||
"sync"
|
||||
|
||||
"github.com/docker/docker/pkg/random"
|
||||
)
|
||||
|
||||
var rndSrc = random.NewSource()
|
||||
|
||||
type readCloserWrapper struct {
|
||||
io.Reader
|
||||
closer func() error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue