Skip to content

Commit

Permalink
Update CommandManager comment
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Jan 18, 2024
1 parent f26e2db commit b2e7b60
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions java/client/src/main/java/glide/managers/CommandManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ public class CommandManager {
*/
public <T> CompletableFuture<T> submitNewCommand(
Command command, RedisExceptionCheckedFunction<Response, T> responseHandler) {
// register callback
// create protobuf message from command
// submit async call
// write command request to channel
// when complete, convert the response to our expected type T using the given responseHandler
return channel
.write(prepareRedisRequest(command.getRequestType(), command.getArguments()), true)
.thenApplyAsync(response -> responseHandler.apply(response));
Expand Down

0 comments on commit b2e7b60

Please sign in to comment.