Skip to content

Commit 1f6b174

Browse files
committed
Update defaults for batch emitting rules
1 parent 24b4f06 commit 1f6b174

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/X.Serilog.Sinks.Telegram/Configuration/BatchEmittingRulesConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public TimeSpan RuleCheckPeriod
3333
/// <summary>
3434
/// Gets or initializes the batch processing rules to be applied.
3535
/// </summary>
36-
public IImmutableList<IRule> BatchProcessingRules { get; init; } = null!;
36+
public IImmutableList<IRule> BatchProcessingRules { get; init; } = [];
3737

3838
/// <summary>
3939
/// Gets the execution hooks that are extracted from the batch processing rules.

src/X.Serilog.Sinks.Telegram/Configuration/TelegramSinkConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public int BatchPostingLimit
9090
/// <summary>
9191
/// Gets or sets the configuration for rules on emitting batches.
9292
/// </summary>
93-
public BatchEmittingRulesConfiguration BatchEmittingRulesConfiguration { get; set; } = null!;
93+
public BatchEmittingRulesConfiguration BatchEmittingRulesConfiguration { get; set; } = new();
9494

9595
/// <summary>
9696
/// Gets or sets the configuration for filtering logs.

0 commit comments

Comments
 (0)