From eaa0fb34d790804b828fe5d84906a172821bd048 Mon Sep 17 00:00:00 2001 From: flowerinthenight Date: Sat, 28 Sep 2024 13:17:40 +0900 Subject: [PATCH] ci skip: Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ab64993..51bfde3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ I also wanted some sort of leader election capability without depending on an ex ### Join address -To be done. +For a node to join an existing cluster, it needs a joining address. While zgroup exposes a `join()` function for this, it also provides a callback mechanism, providing callers with a join address. This address can then be stored to an external store for the other nodes to use. Internally, zgroup uses the node with the highest IP(v4) address in the group. ## Sample binary @@ -81,6 +81,8 @@ $ ./zig-out/bin/zgroup group1 0.0.0.0:8083 # and so on... ``` +## Getting the list of members + To get the current members of the group, you can try something like: ```zig