remove redundant code snippet (#484)

This commit is contained in:
Yaron Schneider 2020-03-31 15:00:00 -07:00 committed by GitHub
parent 3f2d2e6ffa
commit b6b4e21276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 21 deletions

View File

@ -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