From e3a6cd84127109276f35df102de1a52d5e7ee13d Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Mon, 23 Nov 2020 03:42:03 +0800 Subject: [PATCH] autopilot: fix typo --- autopilot/interface.go | 6 +++--- autopilot/manager.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/autopilot/interface.go b/autopilot/interface.go index 0a7c5d2a..7858be43 100644 --- a/autopilot/interface.go +++ b/autopilot/interface.go @@ -38,7 +38,7 @@ type Node interface { // 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 -// a signals for various AttachmentHeuristic implementations. +// as signals for various AttachmentHeuristic implementations. type LocalChannel struct { // ChanID is the short channel ID for this channel as defined within // BOLT-0007. @@ -118,7 +118,7 @@ type AttachmentDirective struct { // AttachmentHeuristic is one of the primary interfaces within this package. // Implementations of this interface will be used to implement a control system // which automatically regulates channels of a particular agent, attempting to -// optimize channels opened/closed based on various heuristics. The purpose of +// optimize channels opened/closed based on various heuristics. The purpose of // the interface is to allow an auto-pilot agent to decide if it needs more // channels, and if so, which exact channels should be opened. type AttachmentHeuristic interface { @@ -170,7 +170,7 @@ type NodeMetric interface { // scores. type ScoreSettable interface { // 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 // recursively target specific sub-heuristics. The returned boolean // indicates whether the targeted heuristic was found. diff --git a/autopilot/manager.go b/autopilot/manager.go index ecdf879f..04f778d5 100644 --- a/autopilot/manager.go +++ b/autopilot/manager.go @@ -42,7 +42,7 @@ type ManagerCfg struct { // Manager is struct that manages an autopilot agent, making it possible to // 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 -// the running autopilot, and give it relevant information. +// the running autopilot, and gives it relevant information. type Manager struct { started sync.Once stopped sync.Once @@ -222,9 +222,9 @@ func (m *Manager) StartAgent() 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 new nodes were added to the graph, or + // node information has changed, we'll poke + // autopilot to see if it can make use of them. if len(topChange.NodeUpdates) > 0 { pilot.OnNodeUpdates() }