htlcswitch: pass quit chans as unidirectional
This is a requirement for replacing the quit channel with a Context. The Done() channel of a Context is always recv-only, so all users of that channel must not expect a bidirectional channel.
This commit is contained in:
1 parent
48567e8944
commit
cd14c52ecd
7 files changed
+45
-33
No files matched your search
+1
-1
@@ -101,7 +101,7 @@ type ChannelLinkConfig struct {
|
||||
// switch. The function returns and error in case it fails to send one or
|
||||
// more packets. The link's quit signal should be provided to allow
|
||||
// cancellation of forwarding during link shutdown.
|
||||
ForwardPackets func(chan struct{}, bool, ...*htlcPacket) error
|
||||
ForwardPackets func(<-chan struct{}, bool, ...*htlcPacket) error
|
||||
|
||||
// DecodeHopIterators facilitates batched decoding of HTLC Sphinx onion
|
||||
// blobs, which are then used to inform how to forward an HTLC.
|
||||
|
||||
Reference in new issue
Block a user