work branch into the main #8

Merged
partisan merged 34 commits from work into main 2024-08-18 10:08:43 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 77e1d0681d - Show all commits

View file

@ -25,7 +25,7 @@ func sendHeartbeats() {
}
for _, node := range peers {
msg := Message{
ID: hostID.Pretty(),
ID: hostID,
Type: "heartbeat",
Content: authCode,
}
@ -61,7 +61,7 @@ func startElection() {
for _, node := range peers {
msg := Message{
ID: hostID.Pretty(),
ID: hostID,
Type: "election",
Content: authCode,
}

View file

@ -12,7 +12,7 @@ func nodeUpdateSync() {
for _, peerAddr := range peers {
fmt.Printf("Notifying node %s about update...\n", peerAddr)
msg := Message{
ID: hostID.Pretty(),
ID: hostID,
Type: "update",
Content: "Start update process",
}