Skip to content

Commit

Permalink
Fix client scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jknipper committed Dec 7, 2018
1 parent cfcaba5 commit 9a04977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ var (
)

func init() {
var err error
flag.StringVar(&metricsAddr, "listen-address", ":9102", "The address to listen on for HTTP requests.")
dockerClient, err := docker_client.NewEnvClient()
dockerClient, err = docker_client.NewEnvClient()
if err != nil {
glog.Fatal(err)
}
Expand Down

0 comments on commit 9a04977

Please sign in to comment.