MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / UpdateConfig

Method UpdateConfig

internal/rpc/rpc_client.go:164–171  ·  view source on GitHub ↗

UpdateConfig 修改配置

(config *configs.APIConfig)

Source from the content-addressed store, hash-verified

162
163// UpdateConfig 修改配置
164func (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是否可用
174func (this *RPCClient) TestEndpoints(endpoints []string) bool {

Callers 3

changeAPINodeAddrsMethod · 0.80
LoopMethod · 0.80
handleChangeAPINodeMethod · 0.80

Calls 3

initMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected