Skip to content

Commit

Permalink
core: ci skip: wording
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerinthenight committed Sep 21, 2024
1 parent 6203ea0 commit 37e04e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zgroup.zig
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub fn Fleet(UserData: type) type {
isd_port: u16 = 0,
isd_state: MemberState = .alive,
isd_incarnation: u64 = 0,
// For leader selection protocol.
// For leader election protocol.
// Format:
// |- cmd -|-- port (u16) --|----------- IP address (u32) ----------|
// 00000011.1111111111111111.0000000011111111111111111111111111111111
Expand All @@ -106,7 +106,7 @@ pub fn Fleet(UserData: type) type {
incarnation: u64 = 0,
};

// Commands used for leader selection protocol.
// Commands used for leader election protocol.
const LeaderCmd = enum(u8) {
noop,
heartbeat,
Expand All @@ -117,7 +117,7 @@ pub fn Fleet(UserData: type) type {
/// Optional context data; to be passed back to the callback function(s).
data: ?*UserData,

/// Optional callback for the leader. Note that the internal leader selection
/// Optional callback for the leader. Note that the internal leader election
/// is best-effort only, and is provided to the caller for the purpose of
/// providing an option for setting up facilities for other nodes to join the
/// group. The address format is "ip:port", e.g. "127.0.0.1:8080".
Expand Down

0 comments on commit 37e04e1

Please sign in to comment.