storage: MeasurementStats.ReadFrom requires ByteReader

pull/10616/head
Jacob Marble 2018-10-19 14:16:20 -07:00
parent 022bdc86d6
commit b6a1c0e9c7
1 changed files with 2 additions and 1 deletions

View File

@ -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