mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 16:51:37 +00:00
Rename attr -> attribute, remove unnecessary whitespace.
This commit is contained in:
@@ -68,9 +68,8 @@ public final class ApolloHandler extends ChannelInboundHandlerAdapter {
|
|||||||
@Override
|
@Override
|
||||||
public void channelRead(ChannelHandlerContext ctx, Object message) {
|
public void channelRead(ChannelHandlerContext ctx, Object message) {
|
||||||
try {
|
try {
|
||||||
Attribute<Session> attr = ctx.attr(NetworkConstants.SESSION_KEY);
|
Attribute<Session> attribute = ctx.attr(NetworkConstants.SESSION_KEY);
|
||||||
|
Session session = attribute.get();
|
||||||
Session session = attr.get();
|
|
||||||
|
|
||||||
if (message instanceof HttpRequest || message instanceof JagGrabRequest) {
|
if (message instanceof HttpRequest || message instanceof JagGrabRequest) {
|
||||||
session = new UpdateSession(ctx.channel(), serverContext);
|
session = new UpdateSession(ctx.channel(), serverContext);
|
||||||
@@ -87,11 +86,11 @@ public final class ApolloHandler extends ChannelInboundHandlerAdapter {
|
|||||||
|
|
||||||
switch (handshakeMessage.getServiceId()) {
|
switch (handshakeMessage.getServiceId()) {
|
||||||
case HandshakeConstants.SERVICE_GAME:
|
case HandshakeConstants.SERVICE_GAME:
|
||||||
attr.set(new LoginSession(ctx, serverContext));
|
attribute.set(new LoginSession(ctx, serverContext));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HandshakeConstants.SERVICE_UPDATE:
|
case HandshakeConstants.SERVICE_UPDATE:
|
||||||
attr.set(new UpdateSession(ctx.channel(), serverContext));
|
attribute.set(new UpdateSession(ctx.channel(), serverContext));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user