Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

por-indexer: Override MAX_PAYLOAD_SIZE_LIMIT to default to 5MB #3339

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/mighty-zoos-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/por-indexer-adapter': minor
---

Override MAX_PAYLOAD_SIZE_LIMIT to default to 5MB.
23 changes: 15 additions & 8 deletions packages/sources/por-indexer/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ export const configDefinition = {
},
} as const

export const config = new AdapterConfig({
...configDefinition,
BACKGROUND_EXECUTE_MS: {
description:
'The amount of time the background execute should sleep before performing the next request',
type: 'number',
default: 10_000,
export const config = new AdapterConfig(
{
...configDefinition,
BACKGROUND_EXECUTE_MS: {
description:
'The amount of time the background execute should sleep before performing the next request',
type: 'number',
default: 10_000,
},
},
})
{
envDefaultOverrides: {
MAX_PAYLOAD_SIZE_LIMIT: 5000000,
},
},
)
Loading