mirror of https://github.com/grpc/grpc-go.git
removing unused code (#8316)
This commit is contained in:
parent
af5146b696
commit
5c0d552444
|
|
@ -92,12 +92,7 @@ func newControlChannel(rlsServerName, serviceConfig string, rpcTimeout time.Dura
|
||||||
ctrlCh.cc.Connect()
|
ctrlCh.cc.Connect()
|
||||||
ctrlCh.client = rlsgrpc.NewRouteLookupServiceClient(ctrlCh.cc)
|
ctrlCh.client = rlsgrpc.NewRouteLookupServiceClient(ctrlCh.cc)
|
||||||
ctrlCh.logger.Infof("Control channel created to RLS server at: %v", rlsServerName)
|
ctrlCh.logger.Infof("Control channel created to RLS server at: %v", rlsServerName)
|
||||||
start := make(chan struct{})
|
go ctrlCh.monitorConnectivityState()
|
||||||
go func() {
|
|
||||||
close(start)
|
|
||||||
ctrlCh.monitorConnectivityState()
|
|
||||||
}()
|
|
||||||
<-start
|
|
||||||
return ctrlCh, nil
|
return ctrlCh, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue