Commit 6c77ab47 authored by luhongguang's avatar luhongguang

update:es host

parent 8bf8a1c2
......@@ -18,11 +18,10 @@ final class ElasticUtil
/**
* ElasticUtil constructor.
* @param $hosts
*/
public function __construct()
public function __construct($hosts)
{
$hosts = ['http://localhost:9200']; //todo 读取yaconf
$this->client = ClientBuilder::create()->setHosts($hosts)->build();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment