fix golint nits (#3291)

This commit is contained in:
Krasi Georgiev 2017-10-20 16:59:53 +03:00 committed by Brian Brazil
parent be5422a166
commit 55a1311f6a
2 changed files with 5 additions and 8 deletions

View file

@ -219,11 +219,9 @@ 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 {
err := app.Appender.AddFast(lset, ref, t, v)
return err
}
return nil
}
type timeLimitAppender struct {
storage.Appender
@ -247,11 +245,9 @@ 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 {
err := app.Appender.AddFast(lset, ref, t, v)
return err
}
return nil
}
// populateLabels builds a label set from the given label set and scrape configuration.
// It returns a label set before relabeling was applied as the second return value.

View file

@ -50,6 +50,7 @@ type targetSet struct {
sp *scrapePool
}
// Appendable returns an Appender.
type Appendable interface {
Appender() (storage.Appender, error)
}