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

Method initialTimeout

downloader/task.go:234–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232}
233
234func (t *singleObjectTask) initialTimeout() time.Duration {
235 config := cmn.GCO.Get()
236 timeout := config.Downloader.Timeout.D()
237 if t.job.Timeout() != 0 {
238 timeout = t.job.Timeout()
239 }
240 return timeout
241}
242
243// Probably we need to extend the persistent database (db.go) so that it will contain
244// also information about specific tasks.

Callers 2

downloadLocalMethod · 0.95
downloadRemoteMethod · 0.95

Calls 3

DMethod · 0.80
GetMethod · 0.65
TimeoutMethod · 0.65

Tested by

no test coverage detected