Skip to content

Commit

Permalink
Broadcast FUNCTION LOAD command methods (#3557)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Sep 28, 2023
1 parent 2ea58e0 commit 1244f67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/redis/clients/jedis/UnifiedJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -3318,12 +3318,12 @@ public List<LibraryInfo> functionListWithCode(String libraryNamePattern) {

@Override
public String functionLoad(String functionCode) {
return executeCommand(commandObjects.functionLoad(functionCode));
return checkAndBroadcastCommand(commandObjects.functionLoad(functionCode));
}

@Override
public String functionLoadReplace(String functionCode) {
return executeCommand(commandObjects.functionLoadReplace(functionCode));
return checkAndBroadcastCommand(commandObjects.functionLoadReplace(functionCode));
}

@Override
Expand Down Expand Up @@ -3373,12 +3373,12 @@ public List<Object> functionListWithCode(final byte[] libraryNamePattern) {

@Override
public String functionLoad(byte[] functionCode) {
return executeCommand(commandObjects.functionLoad(functionCode));
return checkAndBroadcastCommand(commandObjects.functionLoad(functionCode));
}

@Override
public String functionLoadReplace(byte[] functionCode) {
return executeCommand(commandObjects.functionLoadReplace(functionCode));
return checkAndBroadcastCommand(commandObjects.functionLoadReplace(functionCode));
}

@Override
Expand Down

0 comments on commit 1244f67

Please sign in to comment.