Ensure we have a concrete manifest and that certain delayed variables are set properly.
()
| 336 | // Ensure we have a concrete manifest and that certain delayed variables are set |
| 337 | // properly. |
| 338 | func (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. |
no test coverage detected