diff --git a/examples/server/a_bit_of_everything.go b/examples/server/a_bit_of_everything.go index c9fb1619e4e..7b29b90cac4 100644 --- a/examples/server/a_bit_of_everything.go +++ b/examples/server/a_bit_of_everything.go @@ -8,7 +8,7 @@ import ( "github.com/golang/glog" "github.com/golang/protobuf/ptypes/duration" "github.com/golang/protobuf/ptypes/empty" - examples "github.com/grpc-ecosystem/grpc-gateway/examples/examplepb" + examples "../examplepb" "github.com/grpc-ecosystem/grpc-gateway/examples/sub" "github.com/grpc-ecosystem/grpc-gateway/examples/sub2" "github.com/rogpeppe/fastuuid" @@ -17,7 +17,6 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" - "github.com/warmans/grpc-gateway/examples/examplepb" ) // Implements of ABitOfEverythingServiceServer @@ -248,6 +247,6 @@ func (s *_ABitOfEverythingServer) Timeout(ctx context.Context, msg *empty.Empty) } } -func (s *_ABitOfEverythingServer) GetMessageWithBody(context.Context, *examplepb.MessageWithBody) (*empty.Empty, error) { +func (s *_ABitOfEverythingServer) GetMessageWithBody(ctx context.Context, body *examples.MessageWithBody) (*empty.Empty, error) { return &empty.Empty{}, nil }