[#57] services/object: Combine common service parameters
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8cddbe58a6
commit
39c17253be
24 changed files with 109 additions and 61 deletions
|
@ -63,7 +63,7 @@ func (s *Service) Head(ctx context.Context, prm *Prm) (*Response, error) {
|
|||
r, err := (&distributedHeader{
|
||||
cfg: s.cfg,
|
||||
}).head(ctx, prm)
|
||||
if err == nil || prm.local {
|
||||
if err == nil || prm.common.LocalOnly() {
|
||||
return r, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue