mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-12 09:40:46 +08:00
Merge pull request #2177 from gravitl/GRA-1351/lengthy-delay-fix
GRA-1351: fix delay in updates around client CRUD
This commit is contained in:
commit
dd77f09fd9
1 changed files with 57 additions and 57 deletions
|
|
@ -325,6 +325,7 @@ func GetPeerUpdateForHost(ctx context.Context, network string, host *models.Host
|
||||||
hostPeerUpdate.NodePeers = append(hostPeerUpdate.NodePeers, nodePeer)
|
hostPeerUpdate.NodePeers = append(hostPeerUpdate.NodePeers, nodePeer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
var extPeers []wgtypes.PeerConfig
|
var extPeers []wgtypes.PeerConfig
|
||||||
var extPeerIDAndAddrs []models.IDandAddr
|
var extPeerIDAndAddrs []models.IDandAddr
|
||||||
if node.IsIngressGateway {
|
if node.IsIngressGateway {
|
||||||
|
|
@ -389,7 +390,6 @@ func GetPeerUpdateForHost(ctx context.Context, network string, host *models.Host
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// == post peer calculations ==
|
// == post peer calculations ==
|
||||||
// indicate removal if no allowed IPs were calculated
|
// indicate removal if no allowed IPs were calculated
|
||||||
for i := range hostPeerUpdate.Peers {
|
for i := range hostPeerUpdate.Peers {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue