fix error on run

This commit is contained in:
partisan 2024-08-08 13:48:18 +02:00
parent ea3092011a
commit 77e1d0681d
2 changed files with 3 additions and 3 deletions

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",
}