mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🔧 refactor: Increase retry limits and delay for MCP server creation
* Updated MAX_CREATE_RETRIES from 3 to 5 to allow for more attempts during server creation. * Increased RETRY_BASE_DELAY_MS from 10 to 25 milliseconds to provide a longer wait time between retries, improving stability in server initialization.
This commit is contained in:
parent
56b8578174
commit
c88154bb9b
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ import logger from '~/config/winston';
|
|||
import { nanoid } from 'nanoid';
|
||||
|
||||
const NORMALIZED_LIMIT_DEFAULT = 20;
|
||||
const MAX_CREATE_RETRIES = 3;
|
||||
const RETRY_BASE_DELAY_MS = 10;
|
||||
const MAX_CREATE_RETRIES = 5;
|
||||
const RETRY_BASE_DELAY_MS = 25;
|
||||
|
||||
/**
|
||||
* Helper to check if an error is a MongoDB duplicate key error.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue