mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-26 09:02:57 +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 {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue