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:
dcarns 2023-04-06 11:49:58 -04:00 committed by GitHub
commit dd77f09fd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -325,6 +325,7 @@ func GetPeerUpdateForHost(ctx context.Context, network string, host *models.Host
hostPeerUpdate.NodePeers = append(hostPeerUpdate.NodePeers, nodePeer)
}
}
}
var extPeers []wgtypes.PeerConfig
var extPeerIDAndAddrs []models.IDandAddr
if node.IsIngressGateway {
@ -389,7 +390,6 @@ func GetPeerUpdateForHost(ctx context.Context, network string, host *models.Host
}
}
}
}
// == post peer calculations ==
// indicate removal if no allowed IPs were calculated
for i := range hostPeerUpdate.Peers {