storage: MeasurementStats.ReadFrom requires ByteReader
parent
022bdc86d6
commit
b6a1c0e9c7
|
@ -1,6 +1,7 @@
|
|||
package tsm1
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
|
@ -370,7 +371,7 @@ func (t *TSMReader) MeasurementStats() (MeasurementStats, error) {
|
|||
defer f.Close()
|
||||
|
||||
stats := make(MeasurementStats)
|
||||
if _, err := stats.ReadFrom(f); err != nil {
|
||||
if _, err := stats.ReadFrom(bufio.NewReader(f)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return stats, err
|
||||
|
|
Loading…
Reference in New Issue