From 41a7b3ca4ed5b774e116717ee97c5c2cde2aa715 Mon Sep 17 00:00:00 2001 From: Vaughan Hilts Date: Wed, 15 Apr 2020 16:12:58 -0400 Subject: [PATCH] removed unneeded formatting --- cmd/cloud_sql_proxy/cloud_sql_proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cloud_sql_proxy/cloud_sql_proxy.go b/cmd/cloud_sql_proxy/cloud_sql_proxy.go index 8adf9a36a..3a871ca3b 100644 --- a/cmd/cloud_sql_proxy/cloud_sql_proxy.go +++ b/cmd/cloud_sql_proxy/cloud_sql_proxy.go @@ -329,7 +329,7 @@ func checkInstanceConnectivity(instanceName string, public bool, client *proxy.C conn, err := client.Dial(instanceName) if conn != nil { - defer conn.Close() + conn.Close() } if err != nil { @@ -568,7 +568,7 @@ func main() { err := checkInstanceConnectivity(instance, isPublic, client); if err != nil { - log.Fatalf("Connectivity failed for %s with: %v", instance, err) + log.Fatalf("%v", instance, err) } }(index, instanceConfig.Instance, instanceConfig.IsPublic, proxyClient) }