Skip to content

Commit 7f4d96f

Browse files
author
Lucas Wang
authored
Clear the unused variable tlsCfg (#3937)
1 parent 226d555 commit 7f4d96f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

dgraph/cmd/live/run.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"bufio"
2121
"compress/gzip"
2222
"context"
23-
"crypto/tls"
2423
"fmt"
2524
"io"
2625
"io/ioutil"
@@ -65,8 +64,7 @@ type options struct {
6564
}
6665

6766
var (
68-
opt options
69-
tlsCfg *tls.Config
67+
opt options
7068
// Live is the sub-command invoked when running "dgraph live".
7169
Live x.SubCommand
7270
)
@@ -241,7 +239,7 @@ func setup(opts batchMutationOptions, dc *dgo.Dgraph) *loader {
241239
}
242240

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

247245
alloc := xidmap.New(connzero, db)

0 commit comments

Comments
 (0)