Fix wrong argument order

Fix compression not applying because the order of the callback and
options arguments were swapped in the call to Needle.get for the
request_cluster_data function.
This commit is contained in:
Hornwitser authored and GitHub committed 2019-07-26 18:51:16 +02:00
1 parent e733cfde03
commit 2714b09e5d
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ class ResearchSync {
request_cluster_data() {
const slaves_data_url = `${this.config.masterIP}:${this.config.masterPort}/api/slaves`
needle.get(slaves_data_url, this.sync_researches.bind(this), {compressed:true})
needle.get(slaves_data_url, {compressed:true}, this.sync_researches.bind(this))
}
sync_researches(err, resp, slaves_data) {