MCPcopy
hub / github.com/NVIDIA/aistore / ensureConfigPrimaryURL

Method ensureConfigPrimaryURL

ais/proxy.go:2718–2724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2716}
2717
2718func (p *proxy) ensureConfigPrimaryURL() (config *globalConfig, err error) {
2719 config, err = p.owner.config.modify(&configModifier{pre: p._primaryURLPre})
2720 if err != nil {
2721 err = cmn.NewErrFailedTo(p, "update primary URL", config, err)
2722 }
2723 return
2724}
2725
2726func (p *proxy) _primaryURLPre(_ *configModifier, clone *globalConfig) (updated bool, err error) {
2727 smap := p.owner.smap.get()

Callers 1

_becomeFinalMethod · 0.95

Calls 2

NewErrFailedToFunction · 0.92
modifyMethod · 0.65

Tested by

no test coverage detected