This commit is contained in:
2026-02-28 02:45:16 +01:00
parent bc6ab2cf7a
commit e2f187910a
3 changed files with 7 additions and 4 deletions
+3 -3
View File
@@ -421,12 +421,12 @@ class JEBServerUtils:
to_send = record_size_bytes
for _ in range(record_size // jeb_utils.FETCH_RECORDS_CHUNK_SIZE):
to_send += logfile.read(jeb_utils.FETCH_RECORDS_CHUNK_SIZE)
for _ in range(record_size // self.fetch_records_chunk_size):
to_send += logfile.read(self.fetch_records_chunk_size)
# await send_block_function(b'\x01' + to_send)
yield b'\x01' + to_send
to_send = b''
to_send += logfile.read(record_size % jeb_utils.FETCH_RECORDS_CHUNK_SIZE)
to_send += logfile.read(record_size % self.fetch_records_chunk_size)
# await send_block_function(b'\x01' + to_send)
yield b'\x01' + to_send