Remove unused _is_data_lost method

This commit is contained in:
Adrián Chaves 2021-03-09 16:19:51 +01:00
parent 5b2d3e17a3
commit 3bea5e1a97
1 changed files with 0 additions and 8 deletions

View File

@ -362,14 +362,6 @@ class Stream:
self._protocol.conn.reset_stream(self.stream_id, ErrorCodes.REFUSED_STREAM)
self.close(reason)
def _is_data_lost(self) -> bool:
assert self.metadata['stream_closed_server']
expected_size = self._response['flow_controlled_size']
received_body_size = int(self._response['headers'][b'Content-Length'])
return expected_size != received_body_size
def close(
self,
reason: StreamCloseReason,