Skip to content

Commit 6a32b46

Browse files
committed
sweepbatcher: mark channels receive- or send-only
1 parent 80828c2 commit 6a32b46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sweepbatcher/sweep_batcher.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,13 @@ type SpendDetail struct {
307307
// that the sweep was successful.
308308
type SpendNotifier struct {
309309
// SpendChan is a channel where the spend details are received.
310-
SpendChan chan *SpendDetail
310+
SpendChan chan<- *SpendDetail
311311

312312
// SpendErrChan is a channel where spend errors are received.
313-
SpendErrChan chan error
313+
SpendErrChan chan<- error
314314

315315
// QuitChan is a channel that can be closed to stop the notifier.
316-
QuitChan chan bool
316+
QuitChan <-chan bool
317317
}
318318

319319
var (

0 commit comments

Comments
 (0)