Skip to content

Commit

Permalink
feat: pass RPCConfig to proxy.Config (cloudwego#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangruiEmma authored Dec 1, 2021
1 parent fde6c57 commit e2eb0ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func (kc *kClient) proxyInit(ctx context.Context) (context.Context, error) {
Balancer: kc.opt.Balancer,
Pool: kc.opt.RemoteOpt.ConnPool,
FixedTargets: kc.opt.Targets,
RPCConfig: kc.opt.Configs,
}
if err := kc.opt.Proxy.Configure(&cfg); err != nil {
return ctx, err
Expand Down
1 change: 1 addition & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type Config struct {
Balancer loadbalance.Loadbalancer
Pool remote.ConnPool
FixedTargets string // A comma separated list of host ports that user specify to use.
RPCConfig rpcinfo.RPCConfig
}

// ForwardProxy manages the service discovery, load balance and connection pooling processes.
Expand Down

0 comments on commit e2eb0ca

Please sign in to comment.