Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rekall
laravel-scout-solr
Commits
922131fd
Commit
922131fd
authored
Oct 26, 2021
by
Bert Balcaen
Browse files
Making timeout configurable.
parent
2a722c00
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SolrServiceProvider.php
View file @
922131fd
...
...
@@ -18,6 +18,9 @@ class SolrServiceProvider extends ServiceProvider
{
$this
->
app
->
singleton
(
Client
::
class
,
function
()
{
$adapter
=
new
\
Solarium\Core\Client\Adapter\Curl
();
if
(
config
(
'solr.endpoint.localhost.timeout'
))
{
$adapter
->
setTimeout
(
config
(
'solr.endpoint.localhost.timeout'
));
}
$eventDispatcher
=
new
\
Symfony\Component\EventDispatcher\EventDispatcher
();
return
new
Client
(
$adapter
,
$eventDispatcher
,
config
(
'solr'
));
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment