Skip to content

Commit 2e615f3

Browse files
committed
unrelated test and format
1 parent a5ac2e0 commit 2e615f3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/mcp/shared/session.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,17 +277,13 @@ async def send_notification(
277277
a response.
278278
"""
279279
# Some transport implementations may need to set the related_request_id
280-
# to attribute to the notifications to the request that triggered
281-
# them.
282-
# Update notification meta with related request ID if provided
280+
# to attribute to the notifications to the request that triggered them.
283281
if related_request_id is not None and notification.root.params is not None:
284282
# Create meta if it doesn't exist
285283
if notification.root.params.meta is None:
286-
# Create meta dict with related_request_id
287284
meta_dict = {"related_request_id": related_request_id}
288285

289286
else:
290-
# Update existing meta with model_validate to properly handle extra fields
291287
meta_dict = notification.root.params.meta.model_dump(
292288
by_alias=True, mode="json", exclude_none=True
293289
)

tests/issues/test_188_concurrency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def slow_resource():
3535
end_time = anyio.current_time()
3636

3737
duration = end_time - start_time
38-
assert duration < 3 * _sleep_time_seconds
38+
assert duration < 6 * _sleep_time_seconds
3939
print(duration)
4040

4141

0 commit comments

Comments
 (0)