Skip to content

Commit

Permalink
chore(storage): prep RetentionPeriod for proto3 optional (#6749)
Browse files Browse the repository at this point in the history
Precaution detailed in #6748.
  • Loading branch information
noahdietz committed Sep 27, 2022
1 parent d9a437d commit 9d2064d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/bucket.go
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 9d2064d

Please sign in to comment.