From f8c897e3482d217a274e169a0235950c1abefce7 Mon Sep 17 00:00:00 2001 From: Bossett Date: Wed, 4 Sep 2024 19:56:41 +0000 Subject: [PATCH] remove limits from public calls --- src/env/limits.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/env/limits.ts b/src/env/limits.ts index 4b8bf82..5a65784 100644 --- a/src/env/limits.ts +++ b/src/env/limits.ts @@ -16,18 +16,18 @@ const limits = { DELETE_LIMIT_MAX_RATE: 2_750, DELETE_LIMIT_RATE_INTERVAL_MS: 60 * 60 * 1000, // rate limit for plc.directory - PLC_LIMIT_MAX_CONCURRENT: 256, + PLC_LIMIT_MAX_CONCURRENT: undefined, PLC_LIMIT_MAX_DELAY_MS: undefined, PLC_LIMIT_MAX_RATE: undefined, PLC_LIMIT_RATE_INTERVAL_MS: undefined, // rate limit for public API - PUBLIC_LIMIT_MAX_CONCURRENT: 96, + PUBLIC_LIMIT_MAX_CONCURRENT: undefined, PUBLIC_LIMIT_MAX_DELAY_MS: undefined, PUBLIC_LIMIT_MAX_RATE: undefined, PUBLIC_LIMIT_RATE_INTERVAL_MS: undefined, MAX_RETRIES: 1, // retries for HTTP calls and attempts to process commits - MAX_WAIT_RETRY_MS: 1000, // some HTTP calls are retried, this sets the max wait between retries + MAX_WAIT_RETRY_MS: 500, // some HTTP calls are retried, this sets the max wait between retries // ***** APPLICATION CONFIG ***** AUTHOR_FEED_MAX_RESULTS: 30, // sets the limit parameter requesting an author's posts - 30 is what bsky.app uses so the cache should be fresher DB_WRITE_INTERVAL_MS: 15 * 60 * 1000, // time between pauses to update firehose sequence and scavenge cache - higher is generally better but you will have to reprocess this much on restart