Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into martinmr/group-id-r…
Browse files Browse the repository at this point in the history
…estore
  • Loading branch information
martinmr committed Dec 5, 2019
2 parents 2b823e4 + 747c847 commit 182b950
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x/x.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ func ReadLine(r *bufio.Reader, buf *bytes.Buffer) error {
// over to our own buffer.
line, isPrefix, err = r.ReadLine()
if err == nil {
buf.Write(line)
if _, err := buf.Write(line); err != nil {
return err
}
}
}
return err
Expand Down Expand Up @@ -658,7 +660,9 @@ func GetDgraphClient(conf *viper.Viper, login bool) (*dgo.Dgraph, CloseFunc) {

closeFunc := func() {
for _, c := range conns {
c.Close()
if err := c.Close(); err != nil {
glog.Warningf("Error closing connection to Dgraph client: %v", err)
}
}
}
return dg, closeFunc
Expand Down

0 comments on commit 182b950

Please sign in to comment.