Преглед изворни кода

Merge pull request #7954 from gyuho/m

*: remove unused, fix typos
Gyu-Ho Lee пре 8 година
родитељ
комит
4a8fbb9d5d
3 измењених фајлова са 2 додато и 4 уклоњено
  1. 1 1
      etcdmain/config_test.go
  2. 1 1
      pkg/transport/listener.go
  3. 0 2
      tools/functional-tester/etcd-tester/main.go

+ 1 - 1
etcdmain/config_test.go

@@ -149,7 +149,7 @@ func TestConfigFileClusteringFlags(t *testing.T) {
 		Durl           string `json:"discovery"`
 		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",
 			Name: "non-default",

+ 1 - 1
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 ensures the cert matches the given host in case of discovery / virtual hosting
 	ServerName string
 	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.
 	// connection will be closed immediately afterwards.
 	HandshakeFailure func(*tls.Conn, error)
 	HandshakeFailure func(*tls.Conn, error)
 
 

+ 0 - 2
tools/functional-tester/etcd-tester/main.go

@@ -36,8 +36,6 @@ const (
 	defaultFailpointPort = 2381
 	defaultFailpointPort = 2381
 )
 )
 
 
-const pprofPrefix = "/debug/pprof-tester"
-
 func main() {
 func main() {
 	endpointStr := flag.String("agent-endpoints", "localhost:9027", "HTTP RPC endpoints of agents. Do not specify the schema.")
 	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")
 	clientPorts := flag.String("client-ports", "", "etcd client port for each agent endpoint")