Skip to content

Commit

Permalink
Remove parse_cluster_* from API
Browse files Browse the repository at this point in the history
  • Loading branch information
bjosv committed Jun 13, 2024
1 parent ef5cf52 commit 2772db7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions libvalkeycluster/valkeycluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ static void cluster_nodes_swap_ctx(dict *nodes_f, dict *nodes_t) {
/**
* Parse the "cluster slots" command reply to nodes dict.
*/
dict *parse_cluster_slots(valkeyClusterContext *cc, valkeyReply *reply) {
static dict *parse_cluster_slots(valkeyClusterContext *cc, valkeyReply *reply) {
int ret;
cluster_slot *slot = NULL;
dict *nodes = NULL;
Expand Down Expand Up @@ -740,7 +740,8 @@ dict *parse_cluster_slots(valkeyClusterContext *cc, valkeyReply *reply) {
/**
* Parse the "cluster nodes" command reply to nodes dict.
*/
dict *parse_cluster_nodes(valkeyClusterContext *cc, char *str, int str_len) {
static dict *parse_cluster_nodes(valkeyClusterContext *cc, char *str,
int str_len) {
int ret;
dict *nodes = NULL;
dict *nodes_name = NULL;
Expand Down
4 changes: 0 additions & 4 deletions libvalkeycluster/valkeycluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
extern "C" {
#endif

struct dict;
struct hilist;
struct valkeyClusterAsyncContext;

Expand Down Expand Up @@ -251,9 +250,6 @@ int valkeyClusterUpdateSlotmap(valkeyClusterContext *cc);
/* Internal functions */
valkeyContext *ctx_get_by_node(valkeyClusterContext *cc,
valkeyClusterNode *node);
struct dict *parse_cluster_nodes(valkeyClusterContext *cc, char *str,
int str_len);
struct dict *parse_cluster_slots(valkeyClusterContext *cc, valkeyReply *reply);

/*
* Asynchronous API
Expand Down

0 comments on commit 2772db7

Please sign in to comment.