From b2c1d55d00cb011eb2ad7289db552837bfe38d93 Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Tue, 18 Jun 2024 20:37:00 +0000 Subject: [PATCH] Fix sample driver --- .../storage/examples/storage_object_retention_samples.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google/cloud/storage/examples/storage_object_retention_samples.cc b/google/cloud/storage/examples/storage_object_retention_samples.cc index d8afe0b310d50..26cde0888731b 100644 --- a/google/cloud/storage/examples/storage_object_retention_samples.cc +++ b/google/cloud/storage/examples/storage_object_retention_samples.cc @@ -200,13 +200,13 @@ void RunAll(std::vector const& argv) { PatchObjectRetention(client, {bucket_name, name3}); std::cout << "\nRunning ResetObjectRetention() [1]" << std::endl; - PatchObjectRetention(client, {bucket_name, name1}); + ResetObjectRetention(client, {bucket_name, name1}); std::cout << "\nRunning ResetObjectRetention() [2]" << std::endl; - PatchObjectRetention(client, {bucket_name, name2}); + ResetObjectRetention(client, {bucket_name, name2}); std::cout << "\nRunning ResetObjectRetention() [3]" << std::endl; - PatchObjectRetention(client, {bucket_name, name3}); + ResetObjectRetention(client, {bucket_name, name3}); std::cout << "\nCleaning up" << std::endl; for (auto const& name : {name1, name2, name3}) {