mirror of
https://github.com/Horizontal42/netsleuth.git
synced 2026-11-10 21:32:04 +03:00
Fix unused class variable in quic_rtt
Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
This commit is contained in:
parent
8c99ac78b7
commit
f0eee66988
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ async def measure_quic(label: str, host: str, *, port: int = 443, timeout: float
|
||||||
from aioquic.quic.events import HandshakeCompleted
|
from aioquic.quic.events import HandshakeCompleted
|
||||||
|
|
||||||
class _HandshakeCapture(QuicConnectionProtocol):
|
class _HandshakeCapture(QuicConnectionProtocol):
|
||||||
handshake_event: HandshakeCompleted | None = None
|
def __init__(self, *args, **kwargs) -> None: # type: ignore[no-untyped-def]
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
self.handshake_event: HandshakeCompleted | None = None
|
||||||
|
|
||||||
def quic_event_received(self, event) -> None:
|
def quic_event_received(self, event) -> None:
|
||||||
if isinstance(event, HandshakeCompleted):
|
if isinstance(event, HandshakeCompleted):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue