Skip to content

BoundedConcurrentQueue does not accept a negative queue limit. Using …#138

Merged
merbla merged 1 commit intoserilog-contrib:masterfrom
JuanjoFuchs:QueueLimitParameterAdded
Oct 15, 2020
Merged

BoundedConcurrentQueue does not accept a negative queue limit. Using …#138
merbla merged 1 commit intoserilog-contrib:masterfrom
JuanjoFuchs:QueueLimitParameterAdded

Conversation

@JuanjoFuchs
Copy link
Copy Markdown
Contributor

I made a mistake, BoundedConcurrentQueue does not accept a negative queue limit. We need to use the default specified in PeriodicBatchingSinkOptions.QueueLimit

PeriodicBatchingSinkOptions.cs#L45

…the default specified in PeriodicBatchingSinkOptions.QueueLimit
@JuanjoFuchs
Copy link
Copy Markdown
Contributor Author

JuanjoFuchs commented Oct 13, 2020

I've noticed 100,000 is also the default used by ElasticSearchSink which also depends on the PeriodicBatchingSink

@JuanjoFuchs JuanjoFuchs marked this pull request as ready for review October 13, 2020 22:31
@merbla merbla merged commit e764e14 into serilog-contrib:master Oct 15, 2020
@merbla merbla mentioned this pull request Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants