Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the internal function
parse_cluster_nodes
(#119)
* Refactor the internal function `parse_cluster_nodes`. Parse the `CLUSTER NODES` reply by a simpler string search. Parse each line once using a new function `parse_cluster_nodes_line`, which returns a `valkeyClusterNode`. Replicas are only parsed when configured, like legacy. * Refactor the replica handling in CLUSTER NODES parsing. Store parsed replicas in a separate dict during parsing, and move them to their primary when all lines are parsed. Signed-off-by: Björn Svensson <[email protected]> Co-authored-by: Viktor Söderqvist <[email protected]>
- Loading branch information