mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
fix golint nits (#3291)
This commit is contained in:
parent
be5422a166
commit
55a1311f6a
@ -219,10 +219,8 @@ func (app *limitAppender) AddFast(lset labels.Labels, ref uint64, t int64, v flo
|
||||
return errSampleLimit
|
||||
}
|
||||
}
|
||||
if err := app.Appender.AddFast(lset, ref, t, v); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
err := app.Appender.AddFast(lset, ref, t, v)
|
||||
return err
|
||||
}
|
||||
|
||||
type timeLimitAppender struct {
|
||||
@ -247,10 +245,8 @@ func (app *timeLimitAppender) AddFast(lset labels.Labels, ref uint64, t int64, v
|
||||
if t > app.maxTime {
|
||||
return storage.ErrOutOfBounds
|
||||
}
|
||||
if err := app.Appender.AddFast(lset, ref, t, v); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
err := app.Appender.AddFast(lset, ref, t, v)
|
||||
return err
|
||||
}
|
||||
|
||||
// populateLabels builds a label set from the given label set and scrape configuration.
|
||||
|
@ -50,6 +50,7 @@ type targetSet struct {
|
||||
sp *scrapePool
|
||||
}
|
||||
|
||||
// Appendable returns an Appender.
|
||||
type Appendable interface {
|
||||
Appender() (storage.Appender, error)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user