From 7f4d96fd886b5cad088dc5a872a5f296d38248ac Mon Sep 17 00:00:00 2001 From: Lucas Wang Date: Fri, 6 Sep 2019 14:56:03 -0700 Subject: [PATCH] Clear the unused variable tlsCfg (#3937) --- dgraph/cmd/live/run.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dgraph/cmd/live/run.go b/dgraph/cmd/live/run.go index 5c86ea9a3e5..ad54cde94e9 100644 --- a/dgraph/cmd/live/run.go +++ b/dgraph/cmd/live/run.go @@ -20,7 +20,6 @@ import ( "bufio" "compress/gzip" "context" - "crypto/tls" "fmt" "io" "io/ioutil" @@ -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 ) @@ -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)