From 93f1994dc52a4000da824dd95b47f8fa4586793d Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 23 Aug 2018 18:54:44 -0700 Subject: [PATCH] pilot: signal OnNodeUpdates to autopilot --- pilot.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pilot.go b/pilot.go index d9a1a200..219702a7 100644 --- a/pilot.go +++ b/pilot.go @@ -306,6 +306,13 @@ func initAutoPilot(svr *server, cfg *autoPilotConfig) (*autopilot.Agent, error) pilot.OnChannelClose(chanID) } + // If new nodes were added to the graph, or nod + // information has changed, we'll poke autopilot + // to see if it can make use of them. + if len(topChange.NodeUpdates) > 0 { + pilot.OnNodeUpdates() + } + case <-svr.quit: return }