Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear the unused variable tlsCfg #3937

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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