diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-07-08 07:20:01 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-07-08 07:20:01 +0200 |
commit | 68467999c7eebe3b661cc294d86dccab887c876b (patch) | |
tree | e8e72eda33a5de8beef035a6ebb1c54eeca03a78 /Bugzilla/Elastic/Role | |
parent | 597ac85a2a4219cb8cb6d916414e47a3abfa8c72 (diff) | |
download | bugzilla-68467999c7eebe3b661cc294d86dccab887c876b.tar.gz bugzilla-68467999c7eebe3b661cc294d86dccab887c876b.tar.xz |
more harmony fixes
Diffstat (limited to 'Bugzilla/Elastic/Role')
-rw-r--r-- | Bugzilla/Elastic/Role/HasClient.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Elastic/Role/HasClient.pm b/Bugzilla/Elastic/Role/HasClient.pm index 8e2687880..a971392e0 100644 --- a/Bugzilla/Elastic/Role/HasClient.pm +++ b/Bugzilla/Elastic/Role/HasClient.pm @@ -8,7 +8,6 @@ package Bugzilla::Elastic::Role::HasClient; use 5.10.1; use Moo::Role; -use Search::Elasticsearch; has 'client' => (is => 'lazy'); @@ -16,6 +15,7 @@ has 'client' => (is => 'lazy'); sub _build_client { my ($self) = @_; + require Search::Elasticsearch; return Search::Elasticsearch->new( nodes => [ split(/\s+/, Bugzilla->params->{elasticsearch_nodes}) ], cxn_pool => 'Sniff', |