MCPcopy
hub / github.com/git-lfs/git-lfs / Upgrade

Method Upgrade

tq/transfer_queue.go:338–346  ·  view source on GitHub ↗

Ensure we have a concrete manifest and that certain delayed variables are set properly.

()

Source from the content-addressed store, hash-verified

336// Ensure we have a concrete manifest and that certain delayed variables are set
337// properly.
338func (q *TransferQueue) Upgrade() {
339 if q.client == nil {
340 manifest := q.manifest.Upgrade()
341 q.client = &tqClient{Client: manifest.APIClient()}
342 q.rc.MaxRetries = manifest.maxRetries
343 q.rc.MaxRetryDelay = manifest.maxRetryDelay
344 q.client.SetMaxRetries(manifest.maxRetries)
345 }
346}
347
348// Add adds a *Transfer to the transfer queue. It only increments the amount
349// of waiting the TransferQueue has to do if the *Transfer "t" is new.

Callers 7

AddMethod · 0.95
rememberMethod · 0.95
collectPendingUntilMethod · 0.95
addToAdapterMethod · 0.95
partitionTransfersMethod · 0.95
ensureAdapterBegunMethod · 0.95

Calls 3

UpgradeMethod · 0.65
APIClientMethod · 0.65
SetMaxRetriesMethod · 0.65

Tested by

no test coverage detected