File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -647,8 +647,8 @@ async def send_envelope_wrapper() -> None:
647
647
def capture_envelope (self : Self , envelope : Envelope ) -> None :
648
648
# Synchronous entry point
649
649
try :
650
- # We are on the main thread running the event loop
651
650
asyncio .get_running_loop ()
651
+ # We are on the main thread running the event loop
652
652
task = asyncio .create_task (self ._capture_envelope (envelope ))
653
653
self .background_tasks .add (task )
654
654
task .add_done_callback (self .background_tasks .discard )
@@ -680,7 +680,7 @@ async def flush_async(
680
680
681
681
def _get_pool_options (self : Self ) -> Dict [str , Any ]:
682
682
options : Dict [str , Any ] = {
683
- "http2" : False , # no HTTP2 for now, should probably just work with this setting
683
+ "http2" : False , # no HTTP2 for now
684
684
"retries" : 3 ,
685
685
}
686
686
@@ -767,7 +767,7 @@ def kill(self: Self) -> None:
767
767
task .cancel ()
768
768
self .background_tasks .clear ()
769
769
770
- self ._loop .create_task (self ._pool .aclose ()) # type: ignore
770
+ self .loop .create_task (self ._pool .aclose ()) # type: ignore
771
771
772
772
773
773
class HttpTransport (BaseHttpTransport ):
You can’t perform that action at this time.
0 commit comments