Authored by xuqi

retries

@@ -53,7 +53,9 @@ const walkPath = (client, path, memory) => { @@ -53,7 +53,9 @@ const walkPath = (client, path, memory) => {
53 }; 53 };
54 54
55 module.exports = (server, host, memory) => { 55 module.exports = (server, host, memory) => {
56 - let client = zookeeper.createClient(server); 56 + let client = zookeeper.createClient(server, {
  57 + retries: 3
  58 + });
57 59
58 host = (host && _.indexOf(['pc', 'wap'], host) >= 0) ? host : 'wap'; 60 host = (host && _.indexOf(['pc', 'wap'], host) >= 0) ? host : 'wap';
59 61
1 { 1 {
2 "name": "yoho-zookeeper", 2 "name": "yoho-zookeeper",
3 - "version": "1.0.2", 3 + "version": "1.0.3",
4 "description": "yoho zookeeper", 4 "description": "yoho zookeeper",
5 "main": "index.js", 5 "main": "index.js",
6 "keywords": [ 6 "keywords": [