Skip to content

Commit

Permalink
Cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Nov 7, 2023
1 parent 45b3288 commit c5d42b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions src/main/java/redis/clients/jedis/asyncio/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,10 @@ public class Connection implements Closeable {

private static final Logger logger = LoggerFactory.getLogger(Connection.class);

// private final String host;
// private final int port;

private final EventLoopGroup group;
private final Channel channel;

public Connection(String host, int port) throws InterruptedException {
// this.host = host;
// this.port = port;

this.group = new NioEventLoopGroup();
Bootstrap bootstrap = new Bootstrap();
initializeBootstrap(bootstrap);
Expand Down Expand Up @@ -70,8 +64,6 @@ public void executeCommand(String line) throws InterruptedException {
ChannelFuture writeFuture = channel.writeAndFlush(line);
writeFuture.addListener((ChannelFuture future) -> {
if (!future.isSuccess()) {
//System.err.print("write failed: ");
//future.cause().printStackTrace(System.err);
logger.error("Write failed", future.cause());
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) {

@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
//System.err.print("exceptionCaught: ");
//cause.printStackTrace(System.err);
logger.error("Exception caught", cause);
ctx.close();
}
Expand All @@ -58,7 +56,6 @@ private static void printAggregatedRedisResponse(RedisMessage msg) {
} else if (msg instanceof ErrorRedisMessage) {
logger.error(((ErrorRedisMessage) msg).content());
} else if (msg instanceof IntegerRedisMessage) {
//System.out.println(((IntegerRedisMessage) msg).value());
logger.error(((IntegerRedisMessage) msg).toString());
} else if (msg instanceof FullBulkStringRedisMessage) {
logger.error(getString((FullBulkStringRedisMessage) msg));
Expand Down

0 comments on commit c5d42b1

Please sign in to comment.