pilot: signal OnNodeUpdates to autopilot

This commit is contained in:
Conner Fromknecht committed 2018-08-23 18:58:12 -07:00
1 parent 602856750b
commit 93f1994dc5
1 file changed
+7
+7
View File
@@ -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
}