mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 04:16:15 +02:00
chore(direct_io): fix constructor's name (#17371)
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
This commit is contained in:
parent
2063b953c7
commit
504587c724
@ -408,7 +408,7 @@ func (w *Writer) cut() error {
|
||||
// Uncached IO is implemented using direct I/O for now.
|
||||
wbuf, err = fileutil.NewDirectIOWriter(f, size)
|
||||
} else {
|
||||
wbuf, err = fileutil.NewBufioWriterWithSeek(f, size)
|
||||
wbuf, err = fileutil.NewBufioWriterWithSize(f, size)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -23,6 +23,6 @@ func NewDirectIOWriter(f *os.File, size int) (BufWriter, error) {
|
||||
return newDirectIOWriter(f, size)
|
||||
}
|
||||
|
||||
func NewBufioWriterWithSeek(f *os.File, size int) (BufWriter, error) {
|
||||
func NewBufioWriterWithSize(f *os.File, size int) (BufWriter, error) {
|
||||
return NewDirectIOWriter(f, size)
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func NewBufioWriterWithSeek(f *os.File, size int) (BufWriter, error) {
|
||||
func NewBufioWriterWithSize(f *os.File, size int) (BufWriter, error) {
|
||||
return &writer{bufio.NewWriterSize(f, size)}, nil
|
||||
}
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func NewBufioWriterWithSeek(f *os.File, size int) (BufWriter, error) {
|
||||
func NewBufioWriterWithSize(f *os.File, size int) (BufWriter, error) {
|
||||
return &writer{bufio.NewWriterSize(f, size)}, nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user