From 01382f4c2ac3b3dedea5c89f166632d0c9c6fe68 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 31 Jan 2024 19:09:29 -0800 Subject: [PATCH] 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. --- htlcswitch/interfaces.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htlcswitch/interfaces.go b/htlcswitch/interfaces.go index a39eef6a4..30a336085 100644 --- a/htlcswitch/interfaces.go +++ b/htlcswitch/interfaces.go @@ -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.