[#57] services/object: Combine common service parameters

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-29 18:05:22 +03:00 committed by Alex Vanin
parent 8cddbe58a6
commit 39c17253be
24 changed files with 109 additions and 61 deletions

View file

@ -61,7 +61,7 @@ func (h *distributedHeader) prepare(ctx context.Context, prm *Prm) error {
// create placement builder from network map
builder := placement.NewNetworkMapBuilder(nm)
if prm.local {
if prm.common.LocalOnly() {
// use local-only placement builder
builder = util.NewLocalPlacement(builder, h.localAddrSrc)
}