Fixup for g->r change, io.reader was already using 'r'

This commit is contained in:
Cameron Sparr 2015-08-31 16:06:51 -06:00
parent 9c57c30e57
commit 4d19fc0860
1 changed files with 5 additions and 5 deletions

View File

@ -129,9 +129,9 @@ func (r *Redis) gatherServer(addr *url.URL, acc plugins.Accumulator) error {
if set && pwd != "" {
c.Write([]byte(fmt.Sprintf("AUTH %s\r\n", pwd)))
r := bufio.NewReader(c)
rdr := bufio.NewReader(c)
line, err := r.ReadString('\n')
line, err := rdr.ReadString('\n')
if err != nil {
return err
}
@ -146,9 +146,9 @@ func (r *Redis) gatherServer(addr *url.URL, acc plugins.Accumulator) error {
r.c.Write([]byte("info\r\n"))
r := bufio.NewReader(r.c)
rdr := bufio.NewReader(r.c)
line, err := r.ReadString('\n')
line, err := rdr.ReadString('\n')
if err != nil {
return err
}
@ -169,7 +169,7 @@ func (r *Redis) gatherServer(addr *url.URL, acc plugins.Accumulator) error {
var read int
for read < sz {
line, err := r.ReadString('\n')
line, err := rdr.ReadString('\n')
if err != nil {
return err
}