We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa9b9d1 commit d288eeeCopy full SHA for d288eee
source/logrepl/cdc.go
@@ -49,6 +49,10 @@ type CDCIterator struct {
49
50
// batchesCh is a channel shared between this iterator and a CDCHandler,
51
// to which the CDCHandler is sending batches of records.
52
+ // Using a shared queue here would be the fastest option. However,
53
+ // we also need to watch for a context that can get cancelled,
54
+ // and for the subscription that can end, so using a channel is
55
+ // the best option at the moment.
56
batchesCh chan []opencdc.Record
57
58
// recordsForNextRead contains records from the previous batch (returned by the CDCHandler),
0 commit comments