Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Aug 24, 2016
1 parent d00a1a7 commit c9294e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -660,7 +660,7 @@ public void operationComplete(io.netty.util.concurrent.Future<T> future) throws
} }
}; };
for (Future<T> future : futures) { for (Future<T> future : futures) {
io.netty.util.concurrent.Future<T> f = (io.netty.util.concurrent.Future<T>) future; RFuture<T> f = (RFuture<T>) future;
f.addListener(listener); f.addListener(listener);
} }


Expand All @@ -671,7 +671,7 @@ public void operationComplete(io.netty.util.concurrent.Future<T> future) throws
} }


for (Future<T> future : futures) { for (Future<T> future : futures) {
io.netty.util.concurrent.Future<T> f = (io.netty.util.concurrent.Future<T>) future; RFuture<T> f = (RFuture<T>) future;
f.removeListener(listener); f.removeListener(listener);
} }


Expand Down
Expand Up @@ -365,8 +365,8 @@ public void operationComplete(Future<Void> future)
if (entry.getConfig().getPassword() != null) { if (entry.getConfig().getPassword() != null) {
RFuture<Void> temp = c.async(RedisCommands.AUTH, config.getPassword()); RFuture<Void> temp = c.async(RedisCommands.AUTH, config.getPassword());


FutureListener<Void> listener = new FutureListener<Void> () { FutureListener<Void> listener = new FutureListener<Void>() {
@Override public void operationComplete (Future < Void > future)throws Exception { @Override public void operationComplete(Future<Void> future)throws Exception {
ping(c, pingListener); ping(c, pingListener);
} }
}; };
Expand Down

0 comments on commit c9294e1

Please sign in to comment.