The NodePool documentation has a typo. (SimpleNodePool constructor takes a SelectorInterface as first argument)
Code snippet of problem
use Elastic\Transport\NodePool\Resurrect\ElasticsearchResurrect;
use Elastic\Transport\NodePool\Selector\RoundRobin;
use Elastic\Transport\NodePool\SimpleNodePool;
$nodePool = new SimpleNodePool(
new SimpleNodePool(),
new ElasticsearchResurrect()
);
instead of
$nodePool = new SimpleNodePool(
new RoundRobin(),
new ElasticsearchResurrect()
);
Summary of problem or feature request
The NodePool documentation has a typo. (SimpleNodePool constructor takes a SelectorInterface as first argument)
Code snippet of problem
instead of
System details