mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
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:
1 parent
e733cfde03
commit
2714b09e5d
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user