Skip to content

Commit

Permalink
fix: content length header
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Oct 19, 2022
1 parent 4567807 commit 9fa30c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export default {
withCarCids,
withMemoryBudget,
withDagula,
withResponseMemoryRelease,
withFixedLengthStream
withFixedLengthStream,
withResponseMemoryRelease
)
return middleware(handler)(request, env, ctx)
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/block-batch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const MAX_BYTES_BETWEEN = 1024 * 1024 * 2
const MAX_BATCH_SIZE = 100
const MAX_BATCH_SIZE = 10

export class BlockBatch {
/** @type {number[]} */
Expand Down
2 changes: 1 addition & 1 deletion src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { version } from '../package.json'

const MAX_CAR_BYTES_IN_MEMORY = 1024 * 1024 * 5
const CAR_CODE = 0x0202
const MAX_MEMORY_BUDGET = 1024 * 1024 * 25
const MAX_MEMORY_BUDGET = 1024 * 1024 * 50

/**
* @typedef {import('./bindings').Environment} Environment
Expand Down

0 comments on commit 9fa30c1

Please sign in to comment.