mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 22:22:36 +02:00
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:
@ -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