remove WithMinimumBuffer for MemFile (#820)

This commit is contained in:
Elim Tsiagbey committed 2024-01-11 09:58:32 -05:00
1 parent 87b19504d7
commit 5a6a6a5198
1 file changed
+11 -12
+11 -12
View File
@@ -284,18 +284,17 @@ func NewMemFile(n string, mode sfs.FileMode, options ...Option) *MemFile {
storageOpts := storage.GetOpts(opts.withStorageOptions...)
return &MemFile{
name: n,
Buf: bytes.NewBuffer([]byte{}),
src: []byte{},
mode: mode,
accessMode: storageOpts.WithFileAccessMode,
syncMode: storageOpts.WithCloseSyncMode,
statFunc: opts.withStatFunc,
closeFunc: opts.withCloseFunc,
bufferSize: storageOpts.WithBuffer,
minimumBufferSize: storageOpts.WithMinimumBuffer,
currentOffset: 0,
bufferOffset: 0,
name: n,
Buf: bytes.NewBuffer([]byte{}),
src: []byte{},
mode: mode,
accessMode: storageOpts.WithFileAccessMode,
syncMode: storageOpts.WithCloseSyncMode,
statFunc: opts.withStatFunc,
closeFunc: opts.withCloseFunc,
bufferSize: storageOpts.WithBuffer,
currentOffset: 0,
bufferOffset: 0,
}
}