From ec3c1cca1dca3f89bba5981735402a74bd5158cc Mon Sep 17 00:00:00 2001 From: Aniruddha Basak Date: Tue, 26 Oct 2021 20:52:51 +0530 Subject: [PATCH] Use http.DefaultClient in the getClient function --- locksmithctl/locksmithctl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locksmithctl/locksmithctl.go b/locksmithctl/locksmithctl.go index e4e5aca..5b70002 100644 --- a/locksmithctl/locksmithctl.go +++ b/locksmithctl/locksmithctl.go @@ -178,7 +178,7 @@ func main() { // getLockClient returns an initialized EtcdLockClient, using an etcd // client configured from the global etcd flags -func getClient() (*client.Client, error) { +func getClient() (*http.DefaultClient, error) { // copy of github.com/coreos/etcd/client.DefaultTransport so that // TLSClientConfig can be overridden. transport := &http.Transport{