forked from TrueCloudLab/frostfs-node
0cb8e7f6f1
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
29 lines
480 B
Go
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)
|
|
}
|