Skip to content

Commit e764e14

Browse files
authored
Merge pull request #138 from JuanjoFuchs/QueueLimitParameterAdded
BoundedConcurrentQueue does not accept a negative queue limit. Using …
2 parents f47af1f + d4eda07 commit e764e14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Serilog.Sinks.Splunk/Sinks/Splunk/EventCollectorSink.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Serilog.Sinks.Splunk
3131
/// </summary>
3232
public class EventCollectorSink : PeriodicBatchingSink
3333
{
34-
private const int NoQueueLimit = -1;
34+
private const int DefaultQueueLimit = 100000;
3535

3636
private readonly string _splunkHost;
3737
private readonly string _uriPath;
@@ -186,7 +186,7 @@ public EventCollectorSink(
186186
int? queueLimit,
187187
ITextFormatter jsonFormatter,
188188
HttpMessageHandler messageHandler = null)
189-
: base(batchSizeLimit, TimeSpan.FromSeconds(batchIntervalInSeconds), queueLimit ?? NoQueueLimit)
189+
: base(batchSizeLimit, TimeSpan.FromSeconds(batchIntervalInSeconds), queueLimit ?? DefaultQueueLimit)
190190
{
191191
_uriPath = uriPath;
192192
_splunkHost = splunkHost;

0 commit comments

Comments
 (0)