From 3c42f5b4521a8e12c7caf585611ddfac5b44af2c Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 9 Nov 2020 17:12:32 +0300 Subject: [PATCH] [#161] object/head: Inherit common parameters in HeadRelation Signed-off-by: Leonard Lyubich --- pkg/services/object/head/relation.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/services/object/head/relation.go b/pkg/services/object/head/relation.go index bffe77f0..933b76e5 100644 --- a/pkg/services/object/head/relation.go +++ b/pkg/services/object/head/relation.go @@ -32,7 +32,10 @@ func (h *RelationHeader) HeadRelation(ctx context.Context, addr *objectSDK.Addre a.SetContainerID(addr.GetContainerID()) a.SetObjectID(id) - r, err := h.svc.Head(ctx, new(Prm).WithAddress(a)) + r, err := h.svc.Head(ctx, new(Prm). + WithAddress(a). + WithCommonPrm(prm), + ) if err != nil { return nil, errors.Wrapf(err, "(%T) could not receive relation header", h) }