Skip to content

Commit

Permalink
ci skip: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerinthenight authored Sep 28, 2024
1 parent 2ca64cf commit eaa0fb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eaa0fb3

Please sign in to comment.