From daff7e7cef67ada1cb41fdf15cefbdb0749f96d3 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Thu, 1 Sep 2022 22:51:36 -0400 Subject: [PATCH] Minor updates --- test-client/extended.go | 6 +++--- test-client/location.go | 5 ++++- test-client/main.go | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/test-client/extended.go b/test-client/extended.go index d00a808..fc43a2e 100644 --- a/test-client/extended.go +++ b/test-client/extended.go @@ -10,11 +10,11 @@ import ( func doFiveDay(c pb.WeatherServiceClient) { res, err := c.FiveDay(context.Background(), &pb.RequestFiveDay{ - LocationType: pb.LocationType_LOCATION_TYPE_CITY, + LocationType: pb.LocationType_LOCATION_TYPE_UNSPECIFIED, Units: pb.Units_UNITS_METRIC, Location: &pb.OneOfLocation{ - LocationId: &pb.OneOfLocation_City{ - City: "", + LocationId: &pb.OneOfLocation_ZipCode{ + ZipCode: "97330", }, }, }) diff --git a/test-client/location.go b/test-client/location.go index 2c170e3..ec4e50b 100644 --- a/test-client/location.go +++ b/test-client/location.go @@ -12,7 +12,10 @@ func doLocation(c pb.WeatherServiceClient) { res, err := c.Location(context.Background(), &pb.RequestLocation{ LocationType: pb.LocationType_LOCATION_TYPE_CITY, Location: &pb.OneOfLocation{ - LocationId: &pb.OneOfLocation_City{City: "Corvallis"}}, + LocationId: &pb.OneOfLocation_City{ + City: "Corvallis", + }, + }, }) if err != nil { diff --git a/test-client/main.go b/test-client/main.go index 2cb430f..96cba25 100644 --- a/test-client/main.go +++ b/test-client/main.go @@ -19,6 +19,6 @@ func main() { c := pb.NewWeatherServiceClient(conn) //doCurrent(c) - doFiveDay(c) - //doLocation(c) + //doFiveDay(c) + doLocation(c) }