File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Serilog.Sinks.Splunk/Sinks/Splunk Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ namespace Serilog.Sinks.Splunk
31
31
/// </summary>
32
32
public class EventCollectorSink : PeriodicBatchingSink
33
33
{
34
- private const int NoQueueLimit = - 1 ;
34
+ private const int DefaultQueueLimit = 100000 ;
35
35
36
36
private readonly string _splunkHost ;
37
37
private readonly string _uriPath ;
@@ -186,7 +186,7 @@ public EventCollectorSink(
186
186
int ? queueLimit ,
187
187
ITextFormatter jsonFormatter ,
188
188
HttpMessageHandler messageHandler = null )
189
- : base ( batchSizeLimit , TimeSpan . FromSeconds ( batchIntervalInSeconds ) , queueLimit ?? NoQueueLimit )
189
+ : base ( batchSizeLimit , TimeSpan . FromSeconds ( batchIntervalInSeconds ) , queueLimit ?? DefaultQueueLimit )
190
190
{
191
191
_uriPath = uriPath ;
192
192
_splunkHost = splunkHost ;
You can’t perform that action at this time.
0 commit comments