提交 3bea5e1a 编写于 作者: A Adrián Chaves

Remove unused _is_data_lost method

上级 5b2d3e17
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册