Skip to content

Commit 798270d

Browse files
authored
fix: KiB, not MiB for ack size limits (#1999)
1 parent 7075430 commit 798270d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/message-queues.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export interface BatchOptions {
6767
// This is the maximum number of bytes we will send for a batch of
6868
// ack/modack messages. The server itself has a maximum of 512KiB, so
6969
// we just pull back a little from that in case of unknown fenceposts.
70-
export const MAX_BATCH_BYTES = 510 * 1024 * 1024;
70+
export const MAX_BATCH_BYTES = 510 * 1024;
7171

7272
/**
7373
* Error class used to signal a batch failure.

0 commit comments

Comments
 (0)