autopilot: fix typo
This commit is contained in:
parent
26da2b2c9e
commit
e3a6cd8412
@ -38,7 +38,7 @@ type Node interface {
|
|||||||
|
|
||||||
// LocalChannel is a simple struct which contains relevant details of a
|
// LocalChannel is a simple struct which contains relevant details of a
|
||||||
// particular channel the local node has. The fields in this struct may be used
|
// particular channel the local node has. The fields in this struct may be used
|
||||||
// a signals for various AttachmentHeuristic implementations.
|
// as signals for various AttachmentHeuristic implementations.
|
||||||
type LocalChannel struct {
|
type LocalChannel struct {
|
||||||
// ChanID is the short channel ID for this channel as defined within
|
// ChanID is the short channel ID for this channel as defined within
|
||||||
// BOLT-0007.
|
// BOLT-0007.
|
||||||
@ -170,7 +170,7 @@ type NodeMetric interface {
|
|||||||
// scores.
|
// scores.
|
||||||
type ScoreSettable interface {
|
type ScoreSettable interface {
|
||||||
// SetNodeScores is used to set the internal map from NodeIDs to
|
// SetNodeScores is used to set the internal map from NodeIDs to
|
||||||
// scores. The passed scores must be in the range [0, 1.0]. The fist
|
// scores. The passed scores must be in the range [0, 1.0]. The first
|
||||||
// parameter is the name of the targeted heuristic, to allow
|
// parameter is the name of the targeted heuristic, to allow
|
||||||
// recursively target specific sub-heuristics. The returned boolean
|
// recursively target specific sub-heuristics. The returned boolean
|
||||||
// indicates whether the targeted heuristic was found.
|
// indicates whether the targeted heuristic was found.
|
||||||
|
@ -42,7 +42,7 @@ type ManagerCfg struct {
|
|||||||
// Manager is struct that manages an autopilot agent, making it possible to
|
// Manager is struct that manages an autopilot agent, making it possible to
|
||||||
// enable and disable it at will, and hand it relevant external information.
|
// enable and disable it at will, and hand it relevant external information.
|
||||||
// It implements the autopilot grpc service, which is used to get data about
|
// It implements the autopilot grpc service, which is used to get data about
|
||||||
// the running autopilot, and give it relevant information.
|
// the running autopilot, and gives it relevant information.
|
||||||
type Manager struct {
|
type Manager struct {
|
||||||
started sync.Once
|
started sync.Once
|
||||||
stopped sync.Once
|
stopped sync.Once
|
||||||
@ -222,9 +222,9 @@ func (m *Manager) StartAgent() error {
|
|||||||
pilot.OnChannelClose(chanID)
|
pilot.OnChannelClose(chanID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// If new nodes were added to the graph, or nod
|
// If new nodes were added to the graph, or
|
||||||
// information has changed, we'll poke autopilot
|
// node information has changed, we'll poke
|
||||||
// to see if it can make use of them.
|
// autopilot to see if it can make use of them.
|
||||||
if len(topChange.NodeUpdates) > 0 {
|
if len(topChange.NodeUpdates) > 0 {
|
||||||
pilot.OnNodeUpdates()
|
pilot.OnNodeUpdates()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user