[#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:
parent
cf868188ef
commit
49bf6b24b0
4 changed files with 9 additions and 1 deletions
|
@ -15,6 +15,7 @@ func (s *StorageGroup) ToGRPCMessage() grpc.Message {
|
|||
m = new(sg.StorageGroup)
|
||||
|
||||
m.SetMembers(refs.ObjectIDListToGRPCMessage(s.members))
|
||||
//nolint:staticcheck
|
||||
m.SetExpirationEpoch(s.exp)
|
||||
m.SetValidationDataSize(s.size)
|
||||
m.SetValidationHash(s.hash.ToGRPCMessage().(*refsGRPC.Checksum))
|
||||
|
@ -50,7 +51,7 @@ func (s *StorageGroup) FromGRPCMessage(m grpc.Message) error {
|
|||
return err
|
||||
}
|
||||
|
||||
//nolint: staticcheck
|
||||
//nolint:staticcheck
|
||||
s.exp = v.GetExpirationEpoch()
|
||||
s.size = v.GetValidationDataSize()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue