autopilot: fix linter error
This commit is contained in:
parent
143e7bdf5f
commit
48be9261ef
@ -29,10 +29,10 @@ type ConstrainedPrefAttachment struct {
|
|||||||
threshold float64
|
threshold float64
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPrefAttchment creates a new instance of a ConstrainedPrefAttachment
|
// NewConstrainedPrefAttachment creates a new instance of a
|
||||||
// heuristics given bounds on allowed channel sizes, and an allocation amount
|
// ConstrainedPrefAttachment heuristics given bounds on allowed channel sizes,
|
||||||
// which is interpreted as a percentage of funds that is to be committed to
|
// and an allocation amount which is interpreted as a percentage of funds that
|
||||||
// channels at all times.
|
// is to be committed to channels at all times.
|
||||||
func NewConstrainedPrefAttachment(minChanSize, maxChanSize btcutil.Amount,
|
func NewConstrainedPrefAttachment(minChanSize, maxChanSize btcutil.Amount,
|
||||||
chanLimit uint16, allocation float64) *ConstrainedPrefAttachment {
|
chanLimit uint16, allocation float64) *ConstrainedPrefAttachment {
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ func (p *ConstrainedPrefAttachment) NeedMoreChans(channels []Channel,
|
|||||||
return fundsAvailable, true
|
return fundsAvailable, true
|
||||||
}
|
}
|
||||||
|
|
||||||
// nodeID is a simple type that holds a EC public key serialized in compressed
|
// NodeID is a simple type that holds a EC public key serialized in compressed
|
||||||
// format.
|
// format.
|
||||||
type NodeID [33]byte
|
type NodeID [33]byte
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user