fix error on run
This commit is contained in:
parent
b92d2c732b
commit
5660167495
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue