mini code cleanup

This commit is contained in:
Daniel Czerwonk 2017-05-31 08:17:07 +02:00
parent ff7e0d8067
commit 763af24a3d
2 changed files with 2 additions and 4 deletions

View File

@ -26,8 +26,7 @@ func init() {
} }
func getDesc(prefix string) *desc { func getDesc(prefix string) *desc {
labels := make([]string, 0) labels := []string{"name"}
labels = append(labels, "name")
d := &desc{} d := &desc{}
d.upDesc = prometheus.NewDesc(prefix+"_session_up", "Protocol is up", labels, nil) d.upDesc = prometheus.NewDesc(prefix+"_session_up", "Protocol is up", labels, nil)

View File

@ -27,8 +27,7 @@ func init() {
} }
func getDesc(prefix string) *desc { func getDesc(prefix string) *desc {
labels := make([]string, 0) labels := []string{"name"}
labels = append(labels, "name")
d := &desc{} d := &desc{}
d.upDesc = prometheus.NewDesc(prefix+"_up", "Protocol is up", labels, nil) d.upDesc = prometheus.NewDesc(prefix+"_up", "Protocol is up", labels, nil)