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

Method Next

downloader/diff_resolver.go:180–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178func (dr *DiffResolver) CloseDst() { close(dr.dstCh) }
179
180func (dr *DiffResolver) Next() (DiffResolverResult, error) {
181 if err := dr.err.Err(); err != nil {
182 return DiffResolverResult{}, err
183 }
184
185 r, ok := <-dr.resultCh
186 if !ok {
187 return DiffResolverResult{Action: DiffResolverEOF}, nil
188 }
189 return r, nil
190}
191
192func (dr *DiffResolver) Stop() { dr.stopped.Store(true) }
193func (dr *DiffResolver) Stopped() bool { return dr.stopped.Load() }

Callers 13

TestDiffResolverFunction · 0.95
dispatchDownloadMethod · 0.95
getNextObjsMethod · 0.45
countObjectsFunction · 0.45
extractLocalShardsMethod · 0.45
ExtractShardMethod · 0.45
ExtractShardMethod · 0.45
GetFilesFromTarBufferFunction · 0.45

Calls 1

ErrMethod · 0.65