未验证 提交 d02b52a1 编写于 作者: X Xin,Zhang 提交者: GitHub

Fix the instance data is empty (#54)

* Fix the instance data is empty

* Change grpc tools version

* Change to build os
上级 006e0110
sudo: required
os: osx
language: node_js
node_js:
......
......@@ -101,7 +101,8 @@ RegisterService.prototype.launch = function() {
sendHeartBeat = function(serviceId, instanceID, callback) {
async.forever(function(next) {
setTimeout(function() {
that._serviceManager.remoteClientService().sendHeartBeat(instanceID);
logger.info("RegisterService", "The Service[%s, %d] send heart beat to Collector.", agentConfig.getServiceName(), agentConfig.getInstanceId());
that._serviceManager.remoteClientService().sendHeartBeat(agentConfig.getInstanceId());
next();
}, 3 * 60 * 1000);
}, function(err) {
......
......@@ -49,7 +49,7 @@
"eslint": "^4.19.1",
"eslint-config-google": "^0.9.1",
"eslint-plugin-header": "^1.2.0",
"grpc-tools": "^1.6.6",
"grpc-tools": "1.7.1",
"mysql": "^2.15.0",
"require-self": "^0.2.1",
"run-script-os": "^1.0.3"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册