Skip to content

Commit 556d045

Browse files
committed
update
1 parent 1233892 commit 556d045

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/gateway/grpc_proxy.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ type ctrlProxy struct {
5252

5353
func (cp *ctrlProxy) start(ctx context.Context) error {
5454
grpcServer := grpc.NewServer(
55-
grpc.CustomCodec(proxy.Codec()),
5655
grpc.UnknownServiceHandler(proxy.TransparentHandler(cp.director)),
5756
)
5857
listen, err := net.Listen("tcp", fmt.Sprintf(":%d", cp.port))
@@ -180,7 +179,6 @@ func createGRPCConn(ctx context.Context, addr string) *grpc.ClientConn {
180179
var opts []grpc.DialOption
181180
opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()))
182181
opts = append(opts, grpc.WithBlock())
183-
opts = append(opts, grpc.WithCodec(proxy.Codec()))
184182
ctx, cancel := context.WithCancel(ctx)
185183
timeout := false
186184
go func() {

0 commit comments

Comments
 (0)