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:
parent
44e6671727
commit
2d4f4f884a
6 changed files with 2465 additions and 43 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue