From b6b4e2127611f78b313439debc533921f52cdd8c Mon Sep 17 00:00:00 2001 From: Yaron Schneider Date: Tue, 31 Mar 2020 15:00:00 -0700 Subject: [PATCH] remove redundant code snippet (#484) --- howto/create-grpc-app/README.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/howto/create-grpc-app/README.md b/howto/create-grpc-app/README.md index dfaa01a2c..77fe5fd99 100644 --- a/howto/create-grpc-app/README.md +++ b/howto/create-grpc-app/README.md @@ -66,8 +66,6 @@ import ( 2. Create the client -If mTLS is disabled: - ```go // Get the Dapr port and create a connection daprPort := os.Getenv("DAPR_GRPC_PORT") @@ -82,25 +80,6 @@ If mTLS is disabled: client := pb.NewDaprClient(conn) ``` -If mTLS is enabled: - -```go -tlsConfig := &tls.Config{ - InsecureSkipVerify: true, -} - -creds := credentials.NewTLS(tlsConfig) -conn, err := grpc.Dial(daprAddress, grpc.WithTransportCredentials(creds)) - -if err != nil { - fmt.Println(err) -} -defer conn.Close() - -// Create the client -client := pb.NewDaprClient(conn) -``` - 3. Invoke the Save State method ```go