正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -48,6 +48,7 @@ public class IndexController { | @@ -48,6 +48,7 @@ public class IndexController { | ||
| 48 | BaseResponse<SendMsgResVO> res = new BaseResponse(); | 48 | BaseResponse<SendMsgResVO> res = new BaseResponse(); |
| 49 | heartbeatClient.sendMsg(new CustomProtocol(sendMsgReqVO.getId(),sendMsgReqVO.getMsg())) ; | 49 | heartbeatClient.sendMsg(new CustomProtocol(sendMsgReqVO.getId(),sendMsgReqVO.getMsg())) ; |
| 50 | 50 | ||
| 51 | + // 利用 actuator 来自增 | ||
| 51 | counterService.increment(Constants.COUNTER_CLIENT_PUSH_COUNT); | 52 | counterService.increment(Constants.COUNTER_CLIENT_PUSH_COUNT); |
| 52 | 53 | ||
| 53 | SendMsgResVO sendMsgResVO = new SendMsgResVO() ; | 54 | SendMsgResVO sendMsgResVO = new SendMsgResVO() ; |
-
请 注册 或 登录 后发表评论