|
59 | 59 | validate_user_count_metric_scope, |
60 | 60 | ) |
61 | 61 | from app.nats.node_rpc import node_nats_client |
62 | | -from app.node import calculate_max_message_size, core_users, node_manager |
| 62 | +from app.node import core_users, node_manager |
63 | 63 | from app.operation import BaseOperation, OperatorType |
64 | 64 | from app.utils.logger import get_logger |
65 | 65 | from config import runtime_settings |
@@ -191,7 +191,9 @@ async def _update_single_node_status( |
191 | 191 | asyncio.create_task(notification.error_node(node_notif)) |
192 | 192 |
|
193 | 193 | @staticmethod |
194 | | - async def _get_core_users_map(db: AsyncSession, core_ids: set[int]) -> tuple[dict[int, object | None], dict[int, list]]: |
| 194 | + async def _get_core_users_map( |
| 195 | + db: AsyncSession, core_ids: set[int] |
| 196 | + ) -> tuple[dict[int, object | None], dict[int, list]]: |
195 | 197 | if not core_ids: |
196 | 198 | return {}, {} |
197 | 199 |
|
@@ -629,12 +631,9 @@ async def _connect_single_node_local(self, db: AsyncSession, node_id: int) -> No |
629 | 631 | core = cores_by_id.get(core_id) |
630 | 632 | users = users_by_core.get(core_id, []) |
631 | 633 |
|
632 | | - # Calculate max_message_size based on this node's payload size |
633 | | - max_message_size = calculate_max_message_size(len(users)) |
634 | | - |
635 | 634 | # Update node manager |
636 | 635 | try: |
637 | | - await node_manager.update_node(db_node, max_message_size=max_message_size) |
| 636 | + await node_manager.update_node(db_node) |
638 | 637 | except NodeAPIError as e: |
639 | 638 | # Update status to error using simple CRUD |
640 | 639 | await update_node_status( |
|
0 commit comments