postgres/client.go
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