Skip to content

Commit d40fd54

Browse files
committed
black fixes
1 parent a9b7bf6 commit d40fd54

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mcpgateway/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ async def lifespan(_app: FastAPI) -> AsyncIterator[None]:
214214
logger.error(f"Error shutting down {service.__class__.__name__}: {str(e)}")
215215
logger.info("Shutdown complete")
216216

217+
217218
# Initialize FastAPI app
218219
app = FastAPI(
219220
title=settings.app_name,

mcpgateway/services/gateway_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
from mcpgateway.config import settings
3030
from mcpgateway.db import Gateway as DbGateway
31-
from mcpgateway.db import Tool as DbTool
3231
from mcpgateway.db import SessionLocal
32+
from mcpgateway.db import Tool as DbTool
3333
from mcpgateway.schemas import GatewayCreate, GatewayRead, GatewayUpdate, ToolCreate
3434
from mcpgateway.services.tool_service import ToolService
3535
from mcpgateway.utils.services_auth import decode_auth
@@ -582,7 +582,7 @@ def _get_active_gateways(self) -> list[DbGateway]:
582582
"""Sync function for database operations (runs in thread)."""
583583
with SessionLocal() as db:
584584
return db.execute(select(DbGateway).where(DbGateway.is_active)).scalars().all()
585-
585+
586586
async def _run_health_checks(self) -> None:
587587
"""Run health checks with sync Session in async code."""
588588
while True:
@@ -595,7 +595,7 @@ async def _run_health_checks(self) -> None:
595595

596596
except Exception as e:
597597
logger.error(f"Health check run failed: {str(e)}")
598-
598+
599599
await asyncio.sleep(self._health_check_interval)
600600

601601
def _get_auth_headers(self) -> Dict[str, str]:

0 commit comments

Comments
 (0)