Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
Signed-off-by: Shoham Elias <[email protected]>
  • Loading branch information
shohamazon committed Aug 19, 2024
1 parent 621aee9 commit 6418436
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ fn convert_inner_map_by_type(
key_type: Option<ExpectedReturnType>,
value_type: Option<ExpectedReturnType>,
) -> RedisResult<Value> {
let result: Result<Vec<(Value, Value)>, redis::RedisError> = map
let result = map
.into_iter()
.map(|(key, inner_value)| {
Ok((
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ CompletableFuture<ClusterValue<Object>> fcallReadOnly(
/**
* Kills a function that is currently executing.<br>
* <code>FUNCTION KILL</code> terminates read-only functions only.<br>
* The command will be routed to all primary nodes.
* The command will be routed to all nodes.
*
* @since Valkey 7.0 and above.
* @see <a href="https://valkey.io/commands/function-kill/">valkey.io</a> for details.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ CompletableFuture<Map<GlideString, Object>[]> functionListBinary(

/**
* Kills a function that is currently executing.<br>
* <code>FUNCTION KILL</code> terminates read-only functions only.
* <code>FUNCTION KILL</code> terminates read-only functions only. <code>FUNCTION KILL</code> runs
* on all nodes of the server, including primary and replicas.
*
* @since Valkey 7.0 and above.
* @see <a href="https://valkey.io/commands/function-kill/">valkey.io</a> for details.
Expand Down
4 changes: 3 additions & 1 deletion node/src/GlideClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ export class GlideClient extends BaseClient {
* Returns information about the function that's currently running and information about the
* available execution engines.
*
* FUNCTION STATS runs on all nodes of the cluster, including primary and replicas.
* FUNCTION STATS runs on all nodes of the server, including primary and replicas.
* The response includes a mapping from node address to the command response for that node.
*
* @see {@link https://valkey.io/commands/function-stats/|valkey.io} for details.
Expand Down Expand Up @@ -641,6 +641,8 @@ export class GlideClient extends BaseClient {
* Kills a function that is currently executing.
* `FUNCTION KILL` terminates read-only functions only.
*
* `FUNCTION KILL` runs on all nodes of the server, including primary and replicas.
*
* See https://valkey.io/commands/function-kill/ for details.
*
* since Valkey version 7.0.0.
Expand Down
2 changes: 1 addition & 1 deletion node/src/GlideClusterClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ export class GlideClusterClient extends BaseClient {
* @remarks Since Valkey version 7.0.0.
*
* @param route - (Optional) The client will route the command to the nodes defined by `route`.
* If not defined, the command will be routed to all primary nodes.
* If not defined, the command will be routed to all nodes.
* @returns `OK` if function is terminated. Otherwise, throws an error.
*
* @example
Expand Down
2 changes: 1 addition & 1 deletion python/python/glide/async_commands/cluster_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ async def function_kill(self, route: Optional[Route] = None) -> TOK:
See https://valkey.io/commands/function-kill/ for more details.
Args:
route (Optional[Route]): The command will be routed to all primary nodes, unless `route` is provided,
route (Optional[Route]): The command will be routed to all nodes, unless `route` is provided,
in which case the client will route the command to the nodes defined by `route`.
Returns:
Expand Down
5 changes: 4 additions & 1 deletion python/python/glide/async_commands/standalone_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ async def function_kill(self) -> TOK:
Kills a function that is currently executing.
This command only terminates read-only functions.
FUNCTION KILL runs on all nodes of the server, including primary and replicas.
See https://valkey.io/commands/function-kill/ for more details.
Returns:
Expand All @@ -395,7 +397,8 @@ async def function_stats(self) -> TFunctionStatsFullResponse:
Returns information about the function that's currently running and information about the
available execution engines.
FUNCTION STATS runs on all nodes of the cluster, including primary and replicas. The response includes a mapping from node address to the command response for that node.
FUNCTION STATS runs on all nodes of the server, including primary and replicas.
The response includes a mapping from node address to the command response for that node.
See https://valkey.io/commands/function-stats/ for more details
Expand Down
2 changes: 0 additions & 2 deletions python/python/tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10245,5 +10245,3 @@ async def test_script_large_keys_and_args(self, request, cluster_mode, protocol)
== key.encode()
)
await glide_client.close()
await glide_client.close()
await glide_client.close()

0 comments on commit 6418436

Please sign in to comment.