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

Method recvCluMetaBytes

ais/proxy.go:259–265  ·  view source on GitHub ↗
(action string, body []byte, caller string)

Source from the content-addressed store, hash-verified

257}
258
259func (p *proxy) recvCluMetaBytes(action string, body []byte, caller string) error {
260 var cm cluMeta
261 if err := jsoniter.Unmarshal(body, &cm); err != nil {
262 return fmt.Errorf(cmn.FmtErrUnmarshal, p, "reg-meta", cos.BHead(body), err)
263 }
264 return p.recvCluMeta(&cm, action, caller)
265}
266
267func (p *proxy) recvCluMeta(cluMeta *cluMeta, action, caller string) (err error) {
268 msg := p.newAmsgStr(action, cluMeta.BMD)

Callers 2

joinClusterMethod · 0.95
httpdaepostMethod · 0.95

Calls 2

recvCluMetaMethod · 0.95
BHeadFunction · 0.92

Tested by

no test coverage detected