Skip to content

Commit

Permalink
“优化接口”
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangwenping committed May 25, 2017
1 parent 8aafa20 commit e19ca83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<!--jwpttcg66 maven工程-->
<GameShardingDb.version>1.2.004</GameShardingDb.version>
<GameThreadPool.version>1.1.1</GameThreadPool.version>
<game-executor.version>1.7.3</game-executor.version>
<game-executor.version>1.7.4</game-executor.version>
<game-expression.version>1.1</game-expression.version>

<project.build.directory>target/classes/com</project.build.directory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void channelRegistered(ChannelHandlerContext ctx) throws Exception {
UpdateService updateService = LocalMananger.getInstance().getUpdateService();
NettyTcpSerssionUpdate nettyTcpSerssionUpdate = new NettyTcpSerssionUpdate(nettyTcpSession);;
EventParam<NettyTcpSerssionUpdate> param = new EventParam<NettyTcpSerssionUpdate>(nettyTcpSerssionUpdate);
CycleEvent cycleEvent = new CycleEvent(Constants.EventTypeConstans.readyCreateEventType, nettyTcpSerssionUpdate.getId(), param);
CycleEvent cycleEvent = new CycleEvent(Constants.EventTypeConstans.readyCreateEventType, nettyTcpSerssionUpdate.getUpdateId(), param);
updateService.addReadyCreateEvent(cycleEvent);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public void update() {
nettyTcpSession.update();
updateAlive();
if(Loggers.sessionLogger.isDebugEnabled()){
Loggers.sessionLogger.debug("update session id " + getId());
Loggers.sessionLogger.debug("update session update id " + getUpdateId());
}
}

@Override
public Long getId() {
public Long getUpdateId() {
return nettyTcpSession.getSessionId();
}

Expand Down

0 comments on commit e19ca83

Please sign in to comment.