Skip to content

Commit

Permalink
minor cleanup.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Nov 11, 2023
1 parent a478f4b commit 447b028
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,7 @@ public void connectToRedis() {

@Override
public void connectToRedis(ConnectionSettings connectionSettings) {

Response connected = null;
try {
connected = waitForResult(asyncConnectToRedis(connectionSettings));
//System.out.printf("Connection %s%n", connected != null ? connected.getConstantResponse() : null);
} catch (Exception e) {
System.err.println("Connection time out");
}

int a = 5;
waitForResult(asyncConnectToRedis(connectionSettings));
}

private void createChannel() {
Expand Down Expand Up @@ -402,7 +393,6 @@ private CompletableFuture<Response> submitNewCommand(RequestType command, List<S
var commandId = getNextCallbackId();
//System.out.printf("== %s(%s), callback %d%n", command, String.join(", ", args), commandId);

//commandId.getRight().
return CompletableFuture.supplyAsync(() -> {
RedisRequest request =
RedisRequest.newBuilder()
Expand Down

0 comments on commit 447b028

Please sign in to comment.