Skip to content

Commit

Permalink
Remove duplicate command checks from disconnected and command buffers #…
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Feb 16, 2018
1 parent d1459f7 commit 15e5a6b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/java/io/lettuce/core/protocol/DefaultEndpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,6 @@ private void writeToDisconnectedBuffer(Collection<? extends RedisCommand<?, ?, ?

private void writeToDisconnectedBuffer(RedisCommand<?, ?, ?> command) {

if (disconnectedBuffer.contains(command)) {
return;
}

if (connectionError != null) {
if (debugEnabled) {
logger.debug("{} writeToDisconnectedBuffer() Completing command {} due to connection error", logPrefix(),
Expand All @@ -237,10 +233,6 @@ private void writeToDisconnectedBuffer(RedisCommand<?, ?, ?> command) {

protected <C extends RedisCommand<?, ?, T>, T> void writeToBuffer(C command) {

if (commandBuffer.contains(command)) {
return;
}

if (debugEnabled) {
logger.debug("{} writeToBuffer() buffering command {}", logPrefix(), command);
}
Expand Down

0 comments on commit 15e5a6b

Please sign in to comment.