Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jun 6, 2023
1 parent a614f64 commit 73c25d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deno_transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const VERSION = "1.15.0";
const LANG = "nats.deno";

const ReadBufferSize = 1024 * 128;
const MaxMicrotasks = 1000;

export class DenoTransport implements Transport {
version: string = VERSION;
Expand Down Expand Up @@ -219,7 +220,7 @@ export class DenoTransport implements Transport {
}
// if we have max number of pending microtasks
// schedule a timeout
if (this.microtasks === 1000) {
if (this.microtasks === MaxMicrotasks) {
this.syncTimer = setTimeout(() => {
this.flusher()
.then(() => {
Expand Down

0 comments on commit 73c25d1

Please sign in to comment.