Skip to content

Commit

Permalink
Fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
un000 committed Apr 14, 2018
1 parent c98adeb commit b8f36ac
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ At the client use DialOptions:
```
var dialOpts = []grpc.DialOption{
grpc.WithInsecure(),
}
if *UseCompressor {
// here it is
dialOpts = append(dialOpts, grpc.WithDefaultCallOptions(grpc.UseCompressor(snappy.Name)))
grpc.WithDefaultCallOptions(grpc.UseCompressor(snappy.Name)),
}
conn, err := grpc.Dial(
Expand All @@ -21,5 +17,5 @@ At the client use DialOptions:
)
```

For more information visit the official docs:
For more information, please visit the official docs:
https://github.com/grpc/grpc-go/blob/master/Documentation/compression.md

0 comments on commit b8f36ac

Please sign in to comment.