Skip to content

Commit

Permalink
Update persist Encode call and add TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
notbdu committed Dec 21, 2018
1 parent 1f06135 commit 67b4ca0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion persist/fs/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ func (w *writer) writeValues(
case field.StringType:
return w.sw.Encode(writer, valueIt.stringIt)
case field.TimeType:
return w.tw.Encode(writer, valueIt.timeIt)
// TODO(bodu): have the resolution bubble down from the data source?
return w.tw.Encode(writer, valueIt.timeIt, encoding.EncodeTimeOptions{Resolution: time.Nanosecond})
default:
return fmt.Errorf("unknown value type: %v", valueIt.valueType)
}
Expand Down

0 comments on commit 67b4ca0

Please sign in to comment.