|
|
@ -219,10 +219,8 @@ func (app *limitAppender) AddFast(lset labels.Labels, ref uint64, t int64, v flo |
|
|
|
return errSampleLimit |
|
|
|
return errSampleLimit |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if err := app.Appender.AddFast(lset, ref, t, v); err != nil { |
|
|
|
err := app.Appender.AddFast(lset, ref, t, v) |
|
|
|
return err |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type timeLimitAppender struct { |
|
|
|
type timeLimitAppender struct { |
|
|
@ -247,10 +245,8 @@ func (app *timeLimitAppender) AddFast(lset labels.Labels, ref uint64, t int64, v |
|
|
|
if t > app.maxTime { |
|
|
|
if t > app.maxTime { |
|
|
|
return storage.ErrOutOfBounds |
|
|
|
return storage.ErrOutOfBounds |
|
|
|
} |
|
|
|
} |
|
|
|
if err := app.Appender.AddFast(lset, ref, t, v); err != nil { |
|
|
|
err := app.Appender.AddFast(lset, ref, t, v) |
|
|
|
return err |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// populateLabels builds a label set from the given label set and scrape configuration.
|
|
|
|
// populateLabels builds a label set from the given label set and scrape configuration.
|
|
|
|