Skip to content

Commit

Permalink
prevent setting minimumQueueSize below 1
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmakila committed Jan 7, 2025
1 parent a4e1ee6 commit 0a4790b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public WebhookClient(WebhookLogger webhookLogger, MainConfig.WebhookConfig webho
this.serializer = new SerializerFactory().serializer(this.messageStyle);

if (webhookConfig.minimumQueueSize() != null) {
this.minimumQueueSize = webhookConfig.minimumQueueSize();
this.minimumQueueSize = Math.max(1, webhookConfig.minimumQueueSize());
}

int sendRate = 5;
Expand Down

0 comments on commit 0a4790b

Please sign in to comment.