frostfs-node/pkg/services/object/search/remote.go
Evgenii Stratonikov 0cb8e7f6f1 [#1837] services/object: Fix log messages
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
2022-10-07 13:29:15 +03:00

29 lines
480 B
Go

package searchsvc
import (
"context"
"github.com/nspcc-dev/neofs-node/pkg/core/client"
"go.uber.org/zap"
)
func (exec *execCtx) processNode(ctx context.Context, info client.NodeInfo) {
exec.log.Debug("processing node...")
client, ok := exec.remoteClient(info)
if !ok {
return
}
ids, err := client.searchObjects(exec, info)
if err != nil {
exec.log.Debug("remote operation failed",
zap.String("error", err.Error()),
)
return
}
exec.writeIDList(ids)
}