(gcpClient, command, retryOptions, cb)
| 44 | } |
| 45 | |
| 46 | async function gcpRetry(gcpClient, command, retryOptions, cb) { |
| 47 | if (cb) { |
| 48 | return callbackify(() => gcpRetry(gcpClient, command, |
| 49 | retryOptions))(cb); |
| 50 | } |
| 51 | |
| 52 | return gcpRetryCall(() => gcpClient.send(command), retryOptions); |
| 53 | } |
| 54 | |
| 55 | const defaultShouldRetryUpload = err => err && ( |
| 56 | err.name === 'NoSuchBucket' |
no test coverage detected