forked from TrueCloudLab/frostfs-node
[#161] object/head: Inherit common parameters in HeadRelation
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
d38633e047
commit
3c42f5b452
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ func (h *RelationHeader) HeadRelation(ctx context.Context, addr *objectSDK.Addre
|
||||||
a.SetContainerID(addr.GetContainerID())
|
a.SetContainerID(addr.GetContainerID())
|
||||||
a.SetObjectID(id)
|
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 {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "(%T) could not receive relation header", h)
|
return nil, errors.Wrapf(err, "(%T) could not receive relation header", h)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue