autopilot: typo fix
This commit is contained in:
parent
1efef51268
commit
9336b9b3d4
@ -690,7 +690,7 @@ func (a *Agent) openChans(availableFunds btcutil.Amount, numChans uint32,
|
||||
// available to open channels. If there are any, we will attempt
|
||||
// to dispatch the retrieved directives since we can't be
|
||||
// certain which ones may actually succeed. If too many
|
||||
// connections succeed, we will they will be ignored and made
|
||||
// connections succeed, they will be ignored and made
|
||||
// available to future heuristic selections.
|
||||
a.pendingMtx.Lock()
|
||||
defer a.pendingMtx.Unlock()
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
// limits it will need to stay inside when opening channels.
|
||||
type AgentConstraints interface {
|
||||
// ChannelBudget should, given the passed parameters, return whether
|
||||
// more channels can be be opened while still staying within the set
|
||||
// more channels can be opened while still staying within the set
|
||||
// constraints. If the constraints allow us to open more channels, then
|
||||
// the first return value will represent the amount of additional funds
|
||||
// available towards creating channels. The second return value is the
|
||||
@ -39,15 +39,15 @@ type agentConstraints struct {
|
||||
// create.
|
||||
minChanSize btcutil.Amount
|
||||
|
||||
// maxChanSize the largest channel that the autopilot agent should
|
||||
// maxChanSize is the largest channel that the autopilot agent should
|
||||
// create.
|
||||
maxChanSize btcutil.Amount
|
||||
|
||||
// chanLimit the maximum number of channels that should be created.
|
||||
// chanLimit is the maximum number of channels that should be created.
|
||||
chanLimit uint16
|
||||
|
||||
// allocation the percentage of total funds that should be committed to
|
||||
// automatic channel establishment.
|
||||
// allocation is the percentage of total funds that should be committed
|
||||
// to automatic channel establishment.
|
||||
allocation float64
|
||||
|
||||
// maxPendingOpens is the maximum number of pending channel
|
||||
|
@ -84,7 +84,7 @@ func NewBetweennessCentralityMetric(workers int) (*BetweennessCentrality, error)
|
||||
|
||||
// Name returns the name of the metric.
|
||||
func (bc *BetweennessCentrality) Name() string {
|
||||
return "betweeness_centrality"
|
||||
return "betweenness_centrality"
|
||||
}
|
||||
|
||||
// betweennessCentrality is the core of Brandes' algorithm.
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
// are opened.
|
||||
const DefaultConfTarget = 3
|
||||
|
||||
// Node node is an interface which represents n abstract vertex within the
|
||||
// Node is an interface which represents n abstract vertex within the
|
||||
// channel graph. All nodes should have at least a single edge to/from them
|
||||
// within the graph.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user