148
}
149
150
>
func (factory *factory) getTChannel() *tchannel.Channel {
factory.go
151
>
factory.chOnce.Do(func() {
152
>
ringpopServiceName := fmt.Sprintf("%v-ringpop", factory.ServiceName)
153
>
ringpopHostAddress := net.JoinHostPort(factory.getListenIP().String(), convert.IntToString(factory.RPCConfig.MembershipPort))
154
>
enableTLS := dynamicconfig.EnableRingpopTLS.Get(factory.DC)()
155
>
156
>
var tChannel *tchannel.Channel
157
>
if enableTLS {
158
tChannel = factory.getTLSChannel(ringpopHostAddress, ringpopServiceName)
160
tChannel = factory.getTCPChannel(ringpopHostAddress, ringpopServiceName)
161
}
163
})
164
166
}
167