From 9d2064da582b4966a88326fac92f599279438307 Mon Sep 17 00:00:00 2001 From: Noah Dietz Date: Mon, 26 Sep 2022 17:20:57 -0700 Subject: [PATCH] chore(storage): prep RetentionPeriod for proto3 optional (#6749) Precaution detailed in #6748. --- storage/bucket.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/bucket.go b/storage/bucket.go index ea83e81a1bf..ff7660c5e4e 100644 --- a/storage/bucket.go +++ b/storage/bucket.go @@ -1347,7 +1347,8 @@ func (rp *RetentionPolicy) toProtoRetentionPolicy() *storagepb.Bucket_RetentionP return nil } return &storagepb.Bucket_RetentionPolicy{ - RetentionPeriod: int64(rp.RetentionPeriod / time.Second), + // TODO(#6748): Fix this once it becomes *int64 + // RetentionPeriod: int64(rp.RetentionPeriod / time.Second), } }