Skip to content

Commit

Permalink
Clear the unused variable tlsCfg (#3937)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Wang authored Sep 6, 2019
1 parent 226d555 commit 7f4d96f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dgraph/cmd/live/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"bufio"
"compress/gzip"
"context"
"crypto/tls"
"fmt"
"io"
"io/ioutil"
Expand Down Expand Up @@ -65,8 +64,7 @@ type options struct {
}

var (
opt options
tlsCfg *tls.Config
opt options
// Live is the sub-command invoked when running "dgraph live".
Live x.SubCommand
)
Expand Down Expand Up @@ -241,7 +239,7 @@ func setup(opts batchMutationOptions, dc *dgo.Dgraph) *loader {
}

// compression with zero server actually makes things worse
connzero, err := x.SetupConnection(opt.zero, tlsCfg, false)
connzero, err := x.SetupConnection(opt.zero, nil, false)
x.Checkf(err, "Unable to connect to zero, Is it running at %s?", opt.zero)

alloc := xidmap.New(connzero, db)
Expand Down

0 comments on commit 7f4d96f

Please sign in to comment.