File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -691,16 +691,17 @@ def capture_envelope(self: Self, envelope: Envelope) -> None:
691
691
for item in envelope .items :
692
692
self .record_lost_event ("no_async_context" , item = item )
693
693
694
- async def flush_async (
694
+ def flush ( # type: ignore[override]
695
695
self : Self ,
696
696
timeout : float ,
697
697
callback : Optional [Callable [[int , float ], None ]] = None ,
698
- ) -> None :
698
+ ) -> Optional [ asyncio . Task [ None ]] :
699
699
logger .debug ("Flushing HTTP transport" )
700
700
701
701
if timeout > 0 :
702
702
self ._worker .submit (lambda : self ._flush_client_reports (force = True ))
703
- await self ._worker .flush_async (timeout , callback ) # type: ignore
703
+ return self ._worker .flush (timeout , callback )
704
+ return None
704
705
705
706
def _get_pool_options (self : Self ) -> Dict [str , Any ]:
706
707
options : Dict [str , Any ] = {
You can’t perform that action at this time.
0 commit comments