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 authored and telpirion committed Sep 27, 2022
1 parent abbce17 commit 9f8d1cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/bucket.go
Original file line number Diff line number Diff line change
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 9f8d1cf

Please sign in to comment.