(gcpClient, bucketName, retryOptions)
| 209 | } |
| 210 | |
| 211 | async function waitForBucketReady(gcpClient, bucketName, retryOptions) { |
| 212 | const cmd = new HeadBucketCommand({ Bucket: bucketName }); |
| 213 | return await gcpRetry(gcpClient, cmd, { |
| 214 | maxAttempts: 6, |
| 215 | shouldRetry: defaultShouldRetryMpuCreate, |
| 216 | getDelayMs: attempt => (attempt + 1) * 1000, |
| 217 | ...retryOptions, |
| 218 | }); |
| 219 | } |
| 220 | |
| 221 | module.exports = { |
| 222 | setBucketClass, |
no test coverage detected