pilot: signal OnNodeUpdates to autopilot

This commit is contained in:
Conner Fromknecht 2018-08-23 18:54:44 -07:00
parent 602856750b
commit 93f1994dc5
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

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
}