Skip to content

Commit

Permalink
fix route_guide again
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley committed Oct 6, 2020
1 parent 3bd206d commit f488b3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/examples_test.sh
Expand Up @@ -77,7 +77,7 @@ declare -A EXPECTED_SERVER_OUTPUT=(

declare -A EXPECTED_CLIENT_OUTPUT=(
["helloworld"]="Greeting: Hello world"
["route_guide"]="location:{latitude:416851321 longitude:-742674555}"
["route_guide"]="Feature: name: \"\", point:(416851321, -742674555)"
["features/authentication"]="UnaryEcho: hello world"
["features/compression"]="UnaryEcho call returned \"compress\", <nil>"
["features/deadline"]="wanted = DeadlineExceeded, got = DeadlineExceeded"
Expand Down
3 changes: 2 additions & 1 deletion examples/route_guide/client/client.go
Expand Up @@ -72,7 +72,8 @@ func printFeatures(client pb.RouteGuideClient, rect *pb.Rectangle) {
if err != nil {
log.Fatalf("%v.ListFeatures(_) = _, %v", client, err)
}
log.Println(feature)
log.Printf("Feature: name: %q, point:(%v, %v)", feature.GetName(),
feature.GetLocation().GetLatitude(), feature.GetLocation().GetLongitude())
}
}

Expand Down

0 comments on commit f488b3f

Please sign in to comment.