Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mbobakov authored Oct 17, 2018
1 parent 9cba8e9 commit ca9f218
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ package main

import (
"time"

_ "github.com/mbobakov/grpc-consul-resolver"
"github.com/sirupsen/logrus"
_ "github.com/mbobakov/grpc-consul-resolver" // It's important

"google.golang.org/grpc"
"google.golang.org/grpc/grpclog"
)

func main() {
conn, err := grpc.Dial(
"consul://127.0.0.1:8500/whoami?wait=14s&tag=manual",
conn, err := grpc.Dial( "consul://127.0.0.1:8500/whoami?wait=14s&tag=manual", // See connection string section !
grpc.WithInsecure(),
grpc.WithBalancerName("round_robin"),
)
Expand All @@ -38,4 +36,4 @@ func main() {
defer conn.Close()
...
}
```
```

0 comments on commit ca9f218

Please sign in to comment.