htlcswitch: change LinkDirection to be a type alias
In this commit, we change LinkDirection to be a type alias. This makes creating wrapper structs/interfaces easier, as we don't need to leak htlcswitch.LinkDirection, instead we can accept a bool.
This commit is contained in:
1 parent
82ac5fa912
commit
01382f4c2a
1 file changed
+1
-1
@@ -196,7 +196,7 @@ type FlushHookID uint64
|
|||||||
|
|
||||||
// LinkDirection is used to query and change any link state on a per-direction
|
// LinkDirection is used to query and change any link state on a per-direction
|
||||||
// basis.
|
// basis.
|
||||||
type LinkDirection bool
|
type LinkDirection = bool
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// Incoming is the direction from the remote peer to our node.
|
// Incoming is the direction from the remote peer to our node.
|
||||||
|
|||||||
Reference in new issue
Block a user