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:
Olaoluwa Osuntokun 2024-01-31 19:09:29 -08:00
parent 82ac5fa912
commit 01382f4c2a

View File

@ -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.