[#417] storagegroup: Mark all expiration methods as deprecated

`expiration_epoch` field of `StorageGroup` message has been marked as
deprecated in previous NeoFS API protocol's release.

Mark all method related to the field as deprecated. Leave and use them
for test purposes only.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-09-17 10:39:11 +04:00 committed by LeL
parent cf868188ef
commit 49bf6b24b0
4 changed files with 9 additions and 1 deletions

View file

@ -15,6 +15,8 @@ func (m *StorageGroup) SetValidationHash(v *refs.Checksum) {
}
// SetExpirationEpoch sets number of the last epoch of the storage group lifetime.
//
// Deprecated: do not use, `expiration_epoch` field is deprecated in protocol.
func (m *StorageGroup) SetExpirationEpoch(v uint64) {
m.ExpirationEpoch = v
}