Added comment to why a channel is taking a channel.

This commit is contained in:
Xavi Ramirez 2017-08-10 19:56:17 +00:00
parent 68a16cfe6a
commit 6102f9c752
2 changed files with 4 additions and 2 deletions

View file

@ -46,6 +46,7 @@ func newBatcherManager(
batchMsg: make(chan tagMsgPair),
lastIgnored: 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{}),
}

View file

@ -15,6 +15,7 @@ type checkpointManager struct {
checkpointFreq time.Duration
checkpoint chan kcl.SequencePair
// shutdown chan takes "done" channel to signal when checkpointManager is done shutting down
shutdown chan chan<- struct{}
}