feat(enterprise): add ready for handshake support to pgcoord (#12935)

This commit is contained in:
Colin Adler
2024-04-16 15:01:10 -05:00
committed by GitHub
parent 942e90270e
commit 777dfbe965
10 changed files with 364 additions and 82 deletions

View File

@ -215,8 +215,7 @@ func NewRemoteCoordination(logger slog.Logger,
respLoopDone: make(chan struct{}),
}
if tunnelTarget != uuid.Nil {
// TODO: reenable in upstack PR
// c.coordinatee.SetTunnelDestination(tunnelTarget)
c.coordinatee.SetTunnelDestination(tunnelTarget)
c.Lock()
err := c.protocol.Send(&proto.CoordinateRequest{AddTunnel: &proto.CoordinateRequest_Tunnel{Id: tunnelTarget[:]}})
c.Unlock()