Skip to content
Snippets Groups Projects
Commit 0deb4d50 authored by Martin Schmollinger's avatar Martin Schmollinger
Browse files

Replaced depricated code to establish a connection

parent dfda1636
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ const (
func main() {
// Set up a connection to the server.
//conn, err := grpc.Dial(address, grpc.WithInsecure(), grpc.WithBlock())
//Depricated: conn, err := grpc.Dial(address, grpc.WithInsecure(), grpc.WithBlock())
conn, err := grpc.NewClient(address, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatalf("did not connect: %v", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment