mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01: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:
parent
82ac5fa912
commit
01382f4c2a
@ -196,7 +196,7 @@ type FlushHookID uint64
|
||||
|
||||
// LinkDirection is used to query and change any link state on a per-direction
|
||||
// basis.
|
||||
type LinkDirection bool
|
||||
type LinkDirection = bool
|
||||
|
||||
const (
|
||||
// Incoming is the direction from the remote peer to our node.
|
||||
|
Loading…
x
Reference in New Issue
Block a user