Fix documentation (Remove deprecated call) (#3181)

This commit is contained in:
Dany Henriquez
2022-12-22 11:21:26 +01:00
committed by GitHub
parent 33478c5fca
commit 038cc0cace

View File

@@ -99,7 +99,7 @@ func main() {
rand.Seed(time.Now().UnixNano())
// Open a connection to the server.
conn, err := grpc.Dial(":5000", grpc.WithInsecure())
conn, err := grpc.Dial(":5000", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatalf("failed connecting to server: %s", err)
}
@@ -155,4 +155,4 @@ Observe the output:
```
Hooray! We have successfully created a real gRPC client to talk to our real gRPC server! In the next sections, we will
see how the ent/gRPC integration deals with more advanced ent schema definitions.
see how the ent/gRPC integration deals with more advanced ent schema definitions.