Conversation
9152ae6 to
0b5d4fc
Compare
0b5d4fc to
c94c471
Compare
ReviewCommits Review LGTM |
| // Initialize message channel with buffer to reduce blocking between scanner and processor | ||
| // Buffer size of 1000 allows scanner to work ahead without blocking | ||
| d.msgChan = make(chan asyncMessage, 1000) | ||
| d.shardRefreshCh = make(chan struct{}, 1) |
There was a problem hiding this comment.
I wonder should this be 1
There was a problem hiding this comment.
Has to be 1, senders do a non-blocking send (select/default), so unbuffered would lose the signal. More than 1 doesn't help since one refresh covers everything.
No description provided.