mirror of https://github.com/scrapy/scrapy.git
Remove unused _is_data_lost method
This commit is contained in:
parent
5b2d3e17a3
commit
3bea5e1a97
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue