Showing 2 of 2 total issues
Function serve
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func serve(logger log.Logger, addr string, writers []writer, readers []reader, allowed []string) error {
Method Client.WriteLabel
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *Client) WriteLabel(m *model.Metric, stmt *sql.Stmt, t time.Time) (written bool, err error) {
lid, err := metric.MakeLid(m)
if err != nil {
level.Warn(c.logger).Log("msg", "error hashing labels", "err", err)
return false, err