From b27e3c237ad2bf46c8ef08a9f3e03011e49b361d Mon Sep 17 00:00:00 2001 From: Sydney Munro Date: Thu, 15 Feb 2024 13:58:26 -0800 Subject: [PATCH] remove bucket creation line --- .../main/java/com/google/cloud/storage/benchmarking/Bidi.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage-shared-benchmarking/src/main/java/com/google/cloud/storage/benchmarking/Bidi.java b/storage-shared-benchmarking/src/main/java/com/google/cloud/storage/benchmarking/Bidi.java index 205e7aaa1c..2375d7f8d2 100644 --- a/storage-shared-benchmarking/src/main/java/com/google/cloud/storage/benchmarking/Bidi.java +++ b/storage-shared-benchmarking/src/main/java/com/google/cloud/storage/benchmarking/Bidi.java @@ -55,11 +55,10 @@ class Bidi implements Callable { @Override public String call() throws Exception { - Bucket bucket = storageClient.create(BucketInfo.newBuilder(bucketName).build()); String blobName = DataGenerator.base64Characters().genBytes(20).toString(); BlobWriteSession sess = storageClient.blobWriteSession( - BlobInfo.newBuilder(bucket, blobName).build(), + BlobInfo.newBuilder(bucketName, blobName).build(), BlobWriteOption.doesNotExist()); byte[] bytes = DataGenerator.base64Characters().genBytes(objectSize); Clock clock = Clock.systemDefaultZone();