mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-12 09:40:46 +08:00
added a total peer update to ext client changes
This commit is contained in:
parent
57f438247a
commit
c6beec6bfd
1 changed files with 5 additions and 1 deletions
|
|
@ -69,7 +69,11 @@ func PublishExtPeerUpdate(node *models.Node) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return publish(node, fmt.Sprintf("peers/%s/%s", node.Network, node.ID), data)
|
if err = publish(node, fmt.Sprintf("peers/%s/%s", node.Network, node.ID), data); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
go PublishPeerUpdate(node)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NodeUpdate -- publishes a node update
|
// NodeUpdate -- publishes a node update
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue