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 20, 2024
1 parent 00713ad commit ae41490
Show file tree
Hide file tree
Showing 8 changed files with 12 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
3 changes: 2 additions & 1 deletion node/src/GlideClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,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 @@ -644,6 +644,7 @@ 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 {@link https://valkey.io/commands/function-kill/|valkey.io} for details.
* @remarks 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 @@ -977,7 +977,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 ae41490

Please sign in to comment.