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

Method PushSrc

downloader/diff_resolver.go:148–155  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

146}
147
148func (dr *DiffResolver) PushSrc(v interface{}) {
149 switch x := v.(type) {
150 case *cluster.LOM:
151 dr.srcCh <- x
152 default:
153 cos.Assertf(false, "%T", x)
154 }
155}
156
157func (dr *DiffResolver) CloseSrc() { close(dr.srcCh) }
158

Callers 2

TestDiffResolverFunction · 0.95
dispatchDownloadMethod · 0.95

Calls 1

AssertfFunction · 0.92

Tested by 1

TestDiffResolverFunction · 0.76