forked from TrueCloudLab/frostfs-sdk-go
[#53] session: refactor missed Marshal
declarations
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
7627f8376a
commit
49a24e4b3e
2 changed files with 4 additions and 16 deletions
|
@ -115,12 +115,8 @@ func (x *ContainerContext) IsForSetEACL() bool {
|
|||
}
|
||||
|
||||
// Marshal marshals ContainerContext into a protobuf binary form.
|
||||
func (x *ContainerContext) Marshal(bs ...[]byte) ([]byte, error) {
|
||||
var buf []byte
|
||||
if len(bs) > 0 {
|
||||
buf = bs[0]
|
||||
}
|
||||
return x.ToV2().StableMarshal(buf)
|
||||
func (x *ContainerContext) Marshal() ([]byte, error) {
|
||||
return x.ToV2().StableMarshal(nil)
|
||||
}
|
||||
|
||||
// Unmarshal unmarshals protobuf binary representation of ContainerContext.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue