From 375d09ad2e9553bb9df59da58a987de1e82cab95 Mon Sep 17 00:00:00 2001 From: Golda Velez Date: Thu, 10 Oct 2024 14:36:34 -0700 Subject: [PATCH] fix: address multiquery long timeouts causing excessive queue growth (possibly) --- packages/core/src/ceramic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/ceramic.ts b/packages/core/src/ceramic.ts index e92150febb..da9e8f2f7f 100644 --- a/packages/core/src/ceramic.ts +++ b/packages/core/src/ceramic.ts @@ -67,7 +67,7 @@ import { LevelKVFactory } from './store/level-kv-factory.js' const METRICS_CALLER_NAME = 'js-ceramic' const DEFAULT_CACHE_LIMIT = 500 // number of streams stored in the cache const DEFAULT_QPS_LIMIT = 10 // Max number of pubsub query messages that can be published per second without rate limiting -const DEFAULT_MULTIQUERY_TIMEOUT_MS = 30 * 1000 +const DEFAULT_MULTIQUERY_TIMEOUT_MS = 3 * 1000 const DEFAULT_MIN_ANCHOR_LOOP_DURATION_MS = 60 * 1000 // 1 minute const TESTING = process.env.NODE_ENV == 'test'