Skip to content

Commit

Permalink
Fix type error using URL as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Jun 23, 2015
1 parent 5fbd07b commit a1f7d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (g *Redis) gatherServer(addr *url.URL, acc plugins.Accumulator) error {
continue
}

tags := map[string]string{"host": addr}
tags := map[string]string{"host": addr.String()}
val := strings.TrimSpace(parts[1])

ival, err := strconv.ParseUint(val, 10, 64)
Expand Down

0 comments on commit a1f7d55

Please sign in to comment.