Skip to content

Commit

Permalink
Merge pull request #524 from terinjokes/terin/remove-grpc-client-pref…
Browse files Browse the repository at this point in the history
…ixing

fix(transport/grpc): remove autoprefixing logic
  • Loading branch information
basvanbeek authored May 9, 2017
2 parents 3df66f4 + 76e141a commit d67bb4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/addsvc/client/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func New(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger)
{
sumEndpoint = grpctransport.NewClient(
conn,
"Add",
"pb.Add",
"Sum",
addsvc.EncodeGRPCSumRequest,
addsvc.DecodeGRPCSumResponse,
Expand All @@ -53,7 +53,7 @@ func New(conn *grpc.ClientConn, tracer stdopentracing.Tracer, logger log.Logger)
{
concatEndpoint = grpctransport.NewClient(
conn,
"Add",
"pb.Add",
"Concat",
addsvc.EncodeGRPCConcatRequest,
addsvc.DecodeGRPCConcatResponse,
Expand Down
4 changes: 0 additions & 4 deletions transport/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"reflect"
"strings"

"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
Expand Down Expand Up @@ -37,9 +36,6 @@ func NewClient(
grpcReply interface{},
options ...ClientOption,
) *Client {
if strings.IndexByte(serviceName, '.') == -1 {
serviceName = "pb." + serviceName
}
c := &Client{
client: cc,
method: fmt.Sprintf("/%s/%s", serviceName, method),
Expand Down

0 comments on commit d67bb4c

Please sign in to comment.