@@ -39,11 +39,7 @@ var _ grpcGatewayServer = authserver.Server(nil)
39
39
var _ grpcGatewayServer = (* ts .Server )(nil )
40
40
41
41
// configureGRPCGateway initializes services necessary for running the
42
- // GRPC Gateway services proxied against the server at `grpcSrv`.
43
- //
44
- // The connection between the reverse proxy provided by grpc-gateway
45
- // and our grpc server uses a loopback-based listener to create
46
- // connections between the two.
42
+ // GRPC Gateway services proxied against the server at `grpcAddr`.
47
43
//
48
44
// The function returns 3 arguments that are necessary to call
49
45
// `RegisterGateway` which generated for each of your gRPC services
@@ -53,8 +49,7 @@ func configureGRPCGateway(
53
49
ambientCtx log.AmbientContext ,
54
50
rpcContext * rpc.Context ,
55
51
stopper * stop.Stopper ,
56
- grpcSrv * grpcServer ,
57
- GRPCAddr string ,
52
+ grpcAddr string ,
58
53
) (* gwruntime.ServeMux , context.Context , * grpc.ClientConn , error ) {
59
54
jsonpb := & protoutil.JSONPb {
60
55
EnumsAsInts : true ,
@@ -77,7 +72,7 @@ func configureGRPCGateway(
77
72
78
73
// Eschew `(*rpc.Context).GRPCDial` to avoid unnecessary moving parts on the
79
74
// uniquely in-process connection.
80
- dialOpts , err := rpcContext .GRPCDialOptions (ctx , GRPCAddr , rpcbase .DefaultClass )
75
+ dialOpts , err := rpcContext .GRPCDialOptions (ctx , grpcAddr , rpcbase .DefaultClass )
81
76
if err != nil {
82
77
return nil , nil , nil , err
83
78
}
@@ -93,7 +88,7 @@ func configureGRPCGateway(
93
88
telemetry .Inc (getServerEndpointCounter (method ))
94
89
return invoker (ctx , method , req , reply , cc , opts ... )
95
90
}
96
- conn , err := grpc .DialContext (ctx , GRPCAddr , append (
91
+ conn , err := grpc .DialContext (ctx , grpcAddr , append (
97
92
dialOpts ,
98
93
grpc .WithUnaryInterceptor (callCountInterceptor ),
99
94
)... )
0 commit comments