Important RingBuffBytesSender fix on non batched mode! & downgrade nix-shell python to lowest supported
parent
3b5ade7118
commit
f0af419ab2
|
@ -512,6 +512,7 @@ class RingBuffBytesSender(trio.abc.SendChannel[bytes]):
|
||||||
msg: bytes = struct.pack("<I", len(value)) + value
|
msg: bytes = struct.pack("<I", len(value)) + value
|
||||||
if self.batch_size == 1:
|
if self.batch_size == 1:
|
||||||
await self._sender.send_all(msg)
|
await self._sender.send_all(msg)
|
||||||
|
return
|
||||||
|
|
||||||
self._batch += msg
|
self._batch += msg
|
||||||
self._batch_msg_len += 1
|
self._batch_msg_len += 1
|
||||||
|
|
Loading…
Reference in New Issue