shippingservice: minify dockerfile, unify genproto

also fixed a bug causing non-letter chars in tracking ID.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-19 23:04:53 -07:00
parent 44e6671727
commit 2d4f4f884a
6 changed files with 2465 additions and 43 deletions

View file

@ -10,10 +10,9 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
pb "microservices-demo/pb"
pb "./genproto"
)
const (
default_port = "50051"
)
@ -36,7 +35,7 @@ func (s *server) GetQuote(ctx context.Context, in *pb.GetQuoteRequest) (*pb.GetQ
// 3. Generate a response.
return &pb.GetQuoteResponse{
CostUsd: &pb.MoneyAmount{
Decimal: quote.Dollars,
Decimal: quote.Dollars,
Fractional: quote.Cents,
},
}, nil
@ -76,4 +75,4 @@ func main() {
if err := s.Serve(lis); err != nil {
log.Fatalf("failed to serve: %v", err)
}
}
}