service: add SetVersion to satisfy MetaHeader interface

This commit is contained in:
Evgeniy Kulikov 2019-11-21 15:20:49 +03:00
parent cc3b4d9087
commit b8f3641b59
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2

View file

@ -56,6 +56,9 @@ const (
ErrIncorrectTTL = internal.Error("incorrect ttl")
)
// SetVersion sets protocol version to RequestMetaHeader.
func (m *RequestMetaHeader) SetVersion(v uint32) { m.Version = v }
// SetTTL sets TTL to RequestMetaHeader.
func (m *RequestMetaHeader) SetTTL(v uint32) { m.TTL = v }