From 6a32b4613234358ccd3cb4d0a5dc362e0bb7f6a8 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Tue, 8 Apr 2025 12:02:23 -0300 Subject: [PATCH] sweepbatcher: mark channels receive- or send-only --- sweepbatcher/sweep_batcher.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sweepbatcher/sweep_batcher.go b/sweepbatcher/sweep_batcher.go index 03b697b1..6ab67035 100644 --- a/sweepbatcher/sweep_batcher.go +++ b/sweepbatcher/sweep_batcher.go @@ -307,13 +307,13 @@ type SpendDetail struct { // that the sweep was successful. type SpendNotifier struct { // SpendChan is a channel where the spend details are received. - SpendChan chan *SpendDetail + SpendChan chan<- *SpendDetail // SpendErrChan is a channel where spend errors are received. - SpendErrChan chan error + SpendErrChan chan<- error // QuitChan is a channel that can be closed to stop the notifier. - QuitChan chan bool + QuitChan <-chan bool } var (