mirror of
https://github.com/ent/ent.git
synced 2026-04-28 21:50:56 +03:00
Fix documentation (Remove deprecated call) (#3181)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user