From 8f06e0a972955fb428cc36573c0b167d357024dc Mon Sep 17 00:00:00 2001 From: Andrew Carbonetto Date: Fri, 21 Jun 2024 12:11:28 -0700 Subject: [PATCH] Update handlers Signed-off-by: Andrew Carbonetto --- java/client/src/main/java/glide/api/RedisClient.java | 4 +--- java/client/src/main/java/glide/api/RedisClusterClient.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/java/client/src/main/java/glide/api/RedisClient.java b/java/client/src/main/java/glide/api/RedisClient.java index 6ddccafe2c..4cfd7ba27e 100644 --- a/java/client/src/main/java/glide/api/RedisClient.java +++ b/java/client/src/main/java/glide/api/RedisClient.java @@ -280,9 +280,7 @@ public CompletableFuture functionDelete(@NonNull String libName) { @Override public CompletableFuture functionDump() { return commandManager.submitNewCommand( - FunctionDump, - new GlideString[0], - response -> handleGlideStringResponse(response).getBytes()); + FunctionDump, new GlideString[0], response -> handleBytesOrNullResponse(response)); } @Override diff --git a/java/client/src/main/java/glide/api/RedisClusterClient.java b/java/client/src/main/java/glide/api/RedisClusterClient.java index c8d0cc8585..8d8e60e3b0 100644 --- a/java/client/src/main/java/glide/api/RedisClusterClient.java +++ b/java/client/src/main/java/glide/api/RedisClusterClient.java @@ -596,7 +596,7 @@ public CompletableFuture> functionDump(@NonNull Route route route, response -> route instanceof SingleNodeRoute - ? ClusterValue.ofSingleValue(handleGlideStringResponse(response).getBytes()) + ? ClusterValue.ofSingleValue(handleBytesOrNullResponse(response)) : ClusterValue.ofMultiValueBinary(handleBinaryStringMapResponse(response))); }