forked from TrueCloudLab/frostfs-api-go
Implement Epoch and Version setters on ResponseMetaHeader
This commit is contained in:
parent
9a98dffa62
commit
a21e42ea4f
2 changed files with 20 additions and 0 deletions
|
@ -62,6 +62,12 @@ const (
|
|||
ErrIncorrectTTL = internal.Error("incorrect ttl")
|
||||
)
|
||||
|
||||
// SetVersion sets protocol version to ResponseMetaHeader.
|
||||
func (m *ResponseMetaHeader) SetVersion(v uint32) { m.Version = v }
|
||||
|
||||
// SetEpoch sets Epoch to ResponseMetaHeader.
|
||||
func (m *ResponseMetaHeader) SetEpoch(v uint64) { m.Epoch = v }
|
||||
|
||||
// SetVersion sets protocol version to RequestMetaHeader.
|
||||
func (m *RequestMetaHeader) SetVersion(v uint32) { m.Version = v }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue