Skip to content

Commit 188386d

Browse files
committed
linting
Signed-off-by: Keval Mahajan <[email protected]>
1 parent 211fe15 commit 188386d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

mcpgateway/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class Settings(BaseSettings):
397397

398398
llmchat_enabled: bool = Field(default=False, description="Enable LLM Chat feature")
399399

400-
#redis configurations for Maintaining Chat Sessions in multi-worker environment
400+
# redis configurations for Maintaining Chat Sessions in multi-worker environment
401401
llmchat_session_ttl: int = Field(default=300, description="Seconds for active_session key TTL")
402402
llmchat_session_lock_ttl: int = Field(default=30, description="Seconds for lock expiry")
403403
llmchat_session_lock_retries: int = Field(default=10, description="How many times to poll while waiting")

mcpgateway/routers/llmchat_router.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,11 @@ def build_config(input_data: ConnectInput) -> MCPClientConfig:
463463
WORKER_ID = str(os.getpid())
464464

465465
# Tunables (can set via environment)
466-
SESSION_TTL = settings.llmchat_session_ttl # seconds for active_session key TTL
467-
LOCK_TTL = settings.llmchat_session_lock_ttl # seconds for lock expiry
466+
SESSION_TTL = settings.llmchat_session_ttl # seconds for active_session key TTL
467+
LOCK_TTL = settings.llmchat_session_lock_ttl # seconds for lock expiry
468468
LOCK_RETRIES = settings.llmchat_session_lock_retries # how many times to poll while waiting
469-
LOCK_WAIT = settings.llmchat_session_lock_wait # seconds between polls
469+
LOCK_WAIT = settings.llmchat_session_lock_wait # seconds between polls
470+
470471

471472
# Redis key helpers
472473
def _cfg_key(user_id: str) -> str:

mcpgateway/services/mcp_client_chat_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
from pydantic import BaseModel, Field, field_validator, model_validator
8383

8484
# First-Party
85-
from mcpgateway.services.logging_service import LoggingService
8685
from mcpgateway.config import settings
86+
from mcpgateway.services.logging_service import LoggingService
8787

8888
logging_service = LoggingService()
8989
logger = logging_service.get_logger(__name__)

0 commit comments

Comments
 (0)