File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ async def complete_pending(self) -> None:
206
206
timeout = self .conn .gettimeout
207
207
if _csot .get_timeout ():
208
208
deadline = min (_csot .get_deadline (), self .pending_deadline )
209
- elif timeout :
209
+ elif timeout is not None :
210
210
deadline = min (time .monotonic () + timeout , self .pending_deadline )
211
211
else :
212
212
deadline = self .pending_deadline
@@ -216,8 +216,7 @@ async def complete_pending(self) -> None:
216
216
# TODO: respect deadline
217
217
await self .receive_message (None , True )
218
218
else :
219
- # In sync we need to track the bytes left for the message.
220
- network_layer .receive_data (self .conn , self .pending_bytes , deadline )
219
+ network_layer .receive_data (self , self .pending_bytes , deadline ) # type:ignore[call-arg]
221
220
self .pending_response = False
222
221
self .pending_bytes = 0
223
222
self .pending_deadline = 0.0
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ def complete_pending(self) -> None:
206
206
timeout = self .conn .gettimeout
207
207
if _csot .get_timeout ():
208
208
deadline = min (_csot .get_deadline (), self .pending_deadline )
209
- elif timeout :
209
+ elif timeout is not None :
210
210
deadline = min (time .monotonic () + timeout , self .pending_deadline )
211
211
else :
212
212
deadline = self .pending_deadline
@@ -216,8 +216,7 @@ def complete_pending(self) -> None:
216
216
# TODO: respect deadline
217
217
self .receive_message (None , True )
218
218
else :
219
- # In sync we need to track the bytes left for the message.
220
- network_layer .receive_data (self .conn , self .pending_bytes , deadline )
219
+ network_layer .receive_data (self , self .pending_bytes , deadline ) # type:ignore[call-arg]
221
220
self .pending_response = False
222
221
self .pending_bytes = 0
223
222
self .pending_deadline = 0.0
You can’t perform that action at this time.
0 commit comments