Skip to content

Commit

Permalink
Merge pull request #104 from imatefx/master
Browse files Browse the repository at this point in the history
override hard coded default request timeout for elasticsearch with elastic search options
  • Loading branch information
icebob committed Mar 29, 2021
2 parents 59ea096 + 908362a commit c06cf72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/moleculer-elasticsearch/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ module.exports = {
started() {
this.client = new Elasticsearch.Client(this.settings.elasticsearch);

return this.client.ping({ requestTimeout: 5000 });
return this.client.ping({ requestTimeout: this.settings.elasticsearch.requestTimeout || 5000 });
},

/**
Expand Down

0 comments on commit c06cf72

Please sign in to comment.