Skip to content

Commit

Permalink
Update handlers
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Jun 21, 2024
1 parent 07d9729 commit 8f06e0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions java/client/src/main/java/glide/api/RedisClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,7 @@ public CompletableFuture<String> functionDelete(@NonNull String libName) {
@Override
public CompletableFuture<byte[]> functionDump() {
return commandManager.submitNewCommand(
FunctionDump,
new GlideString[0],
response -> handleGlideStringResponse(response).getBytes());
FunctionDump, new GlideString[0], response -> handleBytesOrNullResponse(response));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ public CompletableFuture<ClusterValue<byte[]>> functionDump(@NonNull Route route
route,
response ->
route instanceof SingleNodeRoute
? ClusterValue.ofSingleValue(handleGlideStringResponse(response).getBytes())
? ClusterValue.ofSingleValue(handleBytesOrNullResponse(response))
: ClusterValue.ofMultiValueBinary(handleBinaryStringMapResponse(response)));
}

Expand Down

0 comments on commit 8f06e0a

Please sign in to comment.