Skip to content

Commit 4de7fe6

Browse files
authored
matching instructions with completed code for client (#43)
Match instructions in README with new completed client code
1 parent 77bc0dc commit 4de7fe6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

codelabs/grpc-go-getting-started/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,12 @@ the server to respond, and will either return a response or an error.
304304
Calling the simple RPC `GetFeature` is nearly as straightforward as calling a local method.
305305

306306
```go
307-
feature, err := client.GetFeature(context.Background(), &pb.Point{Latitude: 409146138, Longitude: -746188906})
307+
point := &pb.Point{Latitude: 409146138, Longitude: -746188906}
308+
log.Printf("Getting feature for point (%d, %d)", point.Latitude, point.Longitude)
309+
// Call GetFeature method on the client.
310+
feature, err := client.GetFeature(context.TODO(), point)
308311
if err != nil {
309-
...
312+
log.Fatalf("client.GetFeature failed: %v", err)
310313
}
311314
```
312315

0 commit comments

Comments
 (0)