Skip to content

Commit

Permalink
updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cperez08 committed Sep 20, 2020
1 parent 6f7b4ae commit 1cbbd9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ For instance:
package main

import (
rsv "github.com/cperez08/dm-resolver/pkg/resolver"
dmresolver "github.com/cperez08/dm-resolver/pkg/resolver"
"google.golang.org/grpc"
"google.golang.org/grpc/balancer/roundrobin"
"google.golang.org/grpc/metadata"
Expand All @@ -44,7 +44,7 @@ var (
scheme = "my-scheme-name"
host = "service-address.com"
port = "50051"
refreshRate = time.Duration(15) // will be parsed in secs
refreshRate = time.Duration(15) // will be parsed in seconds
)

func main() {
Expand All @@ -68,7 +68,7 @@ func init(){
// port number
// true indicates if the resolver needs to watch for changes - only aplicable for domains
// 50 indicates the value in seconds the resolver look for the changes in the domain.
resolver.Register(rsv.NewDomainResolverBuilder(scheme, host, port, true, &refreshRate))
resolver.Register(dmresolver.NewDomainResolverBuilder(scheme, host, port, true, &refreshRate))
}

```
Expand Down Expand Up @@ -99,4 +99,4 @@ func main(){
}
```

Disclaimer: the issue commented above occurred on alpine >= 3.10.5 and <= 3.12 and was never tested with other Linux distros. In local environment the gRPC DNS resolver worked perfectly.
Disclaimer: the issue commented above occurred on alpine >= 3.10.5 and <= 3.12 and was never tested with other Linux distros. In local environment (mac os) the default gRPC DNS resolver worked perfectly.

0 comments on commit 1cbbd9c

Please sign in to comment.