File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments