fix go builds after deleting pkg internal
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
dff246a3d7
commit
61cf05844d
13 changed files with 56 additions and 57 deletions
|
@ -5,8 +5,10 @@ RUN apk add --no-cache \
|
|||
WORKDIR /src/microservices-demo/shippingservice
|
||||
# get known dependencies
|
||||
RUN go get -d golang.org/x/net/context \
|
||||
google.golang.org/grpc \
|
||||
google.golang.org/grpc/reflection
|
||||
google.golang.org/grpc \
|
||||
google.golang.org/grpc/reflection \
|
||||
go.opencensus.io/plugin/ocgrpc
|
||||
|
||||
COPY . .
|
||||
# get other dependencies
|
||||
RUN go get -d ./...
|
||||
|
|
|
@ -6,8 +6,7 @@ import (
|
|||
"net"
|
||||
"os"
|
||||
|
||||
"microservices-demo/src/internal"
|
||||
|
||||
"go.opencensus.io/plugin/ocgrpc"
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/reflection"
|
||||
|
@ -72,7 +71,7 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatalf("failed to listen: %v", err)
|
||||
}
|
||||
s := grpc.NewServer(internal.DefaultServerOptions()...)
|
||||
s := grpc.NewServer(grpc.StatsHandler(&ocgrpc.ServerHandler{}))
|
||||
pb.RegisterShippingServiceServer(s, &server{})
|
||||
log.Printf("Shipping Service listening on port %s", port)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue