Skip to content

Commit

Permalink
Remove writeseries band aid
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldix committed Jan 28, 2015
1 parent d5c1406 commit 821d81c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1253,18 +1253,6 @@ func (s *Server) WriteSeries(database, retentionPolicy string, points []Point) (
}
name, tags, timestamp, values := points[0].Name, points[0].Tags, points[0].Timestamp, points[0].Values

// TODO: temporary band aid? **********************************************
// Convert from JSON numbers to actual numbers, if possible.
for k, v := range values {
n, ok := v.(json.Number)
if ok {
if f, err := n.Float64(); err == nil {
values[k] = f
}
}
}
// ************************************************************************

// Find the id for the series and tagset
seriesID, err := s.createSeriesIfNotExists(database, name, tags)
if err != nil {
Expand Down

0 comments on commit 821d81c

Please sign in to comment.