From d690634bd660937daf9f705065121900d3d7e64e Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 18 May 2017 12:09:22 -0700 Subject: [PATCH] *: remove unused, fix typos Signed-off-by: Gyu-Ho Lee --- etcdmain/config_test.go | 2 +- pkg/transport/listener.go | 2 +- tools/functional-tester/etcd-tester/main.go | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/etcdmain/config_test.go b/etcdmain/config_test.go index 03c0bce20..c82afba47 100644 --- a/etcdmain/config_test.go +++ b/etcdmain/config_test.go @@ -149,7 +149,7 @@ func TestConfigFileClusteringFlags(t *testing.T) { Durl string `json:"discovery"` }{ { - // Use default name and generate a default inital-cluster + // Use default name and generate a default initial-cluster }, { Name: "non-default", diff --git a/pkg/transport/listener.go b/pkg/transport/listener.go index 76b36d944..3b58b4154 100644 --- a/pkg/transport/listener.go +++ b/pkg/transport/listener.go @@ -65,7 +65,7 @@ type TLSInfo struct { // ServerName ensures the cert matches the given host in case of discovery / virtual hosting ServerName string - // HandshakeFailure is optinally called when a connection fails to handshake. The + // HandshakeFailure is optionally called when a connection fails to handshake. The // connection will be closed immediately afterwards. HandshakeFailure func(*tls.Conn, error) diff --git a/tools/functional-tester/etcd-tester/main.go b/tools/functional-tester/etcd-tester/main.go index 9c44ac24e..768fc0c57 100644 --- a/tools/functional-tester/etcd-tester/main.go +++ b/tools/functional-tester/etcd-tester/main.go @@ -36,8 +36,6 @@ const ( defaultFailpointPort = 2381 ) -const pprofPrefix = "/debug/pprof-tester" - func main() { endpointStr := flag.String("agent-endpoints", "localhost:9027", "HTTP RPC endpoints of agents. Do not specify the schema.") clientPorts := flag.String("client-ports", "", "etcd client port for each agent endpoint")