Added comment to why a channel is taking a channel.
This commit is contained in:
parent
68a16cfe6a
commit
6102f9c752
2 changed files with 4 additions and 2 deletions
|
|
@ -46,6 +46,7 @@ func newBatcherManager(
|
||||||
batchMsg: make(chan tagMsgPair),
|
batchMsg: make(chan tagMsgPair),
|
||||||
lastIgnored: make(chan kcl.SequencePair),
|
lastIgnored: make(chan kcl.SequencePair),
|
||||||
lastProcessed: make(chan kcl.SequencePair),
|
lastProcessed: make(chan kcl.SequencePair),
|
||||||
|
// shutdown chan takes "done" channel to signal when batchermanager is done shutting down
|
||||||
shutdown: make(chan chan<- struct{}),
|
shutdown: make(chan chan<- struct{}),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ type checkpointManager struct {
|
||||||
checkpointFreq time.Duration
|
checkpointFreq time.Duration
|
||||||
|
|
||||||
checkpoint chan kcl.SequencePair
|
checkpoint chan kcl.SequencePair
|
||||||
|
// shutdown chan takes "done" channel to signal when checkpointManager is done shutting down
|
||||||
shutdown chan chan<- struct{}
|
shutdown chan chan<- struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue