From bb5fc19630eacb2855868f0b45dae44e6d6f8151 Mon Sep 17 00:00:00 2001 From: feywind <57276408+feywind@users.noreply.github.com> Date: Tue, 12 Nov 2024 16:38:11 -0500 Subject: [PATCH] fix: KiB, not MiB for ack size limits --- src/message-queues.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message-queues.ts b/src/message-queues.ts index b5d1275d2..adc565c3e 100644 --- a/src/message-queues.ts +++ b/src/message-queues.ts @@ -67,7 +67,7 @@ export interface BatchOptions { // This is the maximum number of bytes we will send for a batch of // ack/modack messages. The server itself has a maximum of 512KiB, so // we just pull back a little from that in case of unknown fenceposts. -export const MAX_BATCH_BYTES = 510 * 1024 * 1024; +export const MAX_BATCH_BYTES = 510 * 1024; /** * Error class used to signal a batch failure.