| 34 | } |
| 35 | |
| 36 | type RpcConnectClient struct { |
| 37 | lock sync.Mutex |
| 38 | ServerInsMap map[string][]Instance //serverId--[]ins |
| 39 | IndexMap map[string]int //serverId--index |
| 40 | } |
| 41 | |
| 42 | func (rc *RpcConnectClient) GetRpcClientByServerId(serverId string) (c client.XClient, err error) { |
| 43 | rc.lock.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected