mirror of
https://github.com/minio/minio.git
synced 2025-11-13 07:11:44 -05:00
Making donut use io.ReadWriteSeek instead of io.Writer
This commit is contained in:
@@ -73,7 +73,7 @@ type DonutFooter struct {
|
||||
}
|
||||
|
||||
type Donut struct {
|
||||
file io.Writer
|
||||
file io.ReadWriteSeeker
|
||||
mutex *sync.RWMutex
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ type EncodedChunk struct {
|
||||
Offset int
|
||||
}
|
||||
|
||||
func New(file io.Writer) *Donut {
|
||||
func New(file io.ReadWriteSeeker) *Donut {
|
||||
donut := Donut{}
|
||||
donut.mutex = new(sync.RWMutex)
|
||||
donut.file = file
|
||||
|
||||
Reference in New Issue
Block a user