Skip to content

Commit

Permalink
Enable strict control over readers
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed May 11, 2022
1 parent acde578 commit 1dbb849
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public ConcurrentFilter(uint concurrencyLimit, uint bufferSize = 10) {
var capacity = (int)(concurrencyLimit * bufferSize);

var options = new BoundedChannelOptions(capacity) {
SingleReader = true, SingleWriter = true
SingleReader = concurrencyLimit == 1, SingleWriter = true
};

_worker = new ConcurrentChannelWorker<WorkerTask>(
Expand Down

0 comments on commit 1dbb849

Please sign in to comment.