UpdateConfig 修改配置
(config *configs.APIConfig)
| 162 | |
| 163 | // UpdateConfig 修改配置 |
| 164 | func (this *RPCClient) UpdateConfig(config *configs.APIConfig) error { |
| 165 | this.apiConfig = config |
| 166 | |
| 167 | this.locker.Lock() |
| 168 | err := this.init() |
| 169 | this.locker.Unlock() |
| 170 | return err |
| 171 | } |
| 172 | |
| 173 | // TestEndpoints 测试Endpoints是否可用 |
| 174 | func (this *RPCClient) TestEndpoints(endpoints []string) bool { |
no test coverage detected