generated from jCloud/repository-template
Bug fix
This commit is contained in:
@@ -31,6 +31,9 @@ A segment.
|
|||||||
For more details, see the function and method docstrings.
|
For more details, see the function and method docstrings.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
### Version 0.1.2
|
||||||
|
- Bug fix
|
||||||
|
|
||||||
### Version 0.1.1
|
### Version 0.1.1
|
||||||
- Bug fix: `__init__.py` tried to import from `_core` instead of `._core`.
|
- Bug fix: `__init__.py` tried to import from `_core` instead of `._core`.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "jeb-server-utils"
|
name = "jeb-server-utils"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "The utilities for the jeb server"
|
description = "The utilities for the jeb server"
|
||||||
dependencies = ["config-parser", "jeb-utils"]
|
dependencies = ["config-parser", "jeb-utils"]
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
@@ -421,12 +421,12 @@ class JEBServerUtils:
|
|||||||
|
|
||||||
to_send = record_size_bytes
|
to_send = record_size_bytes
|
||||||
|
|
||||||
for _ in range(record_size // jeb_utils.FETCH_RECORDS_CHUNK_SIZE):
|
for _ in range(record_size // self.fetch_records_chunk_size):
|
||||||
to_send += logfile.read(jeb_utils.FETCH_RECORDS_CHUNK_SIZE)
|
to_send += logfile.read(self.fetch_records_chunk_size)
|
||||||
# await send_block_function(b'\x01' + to_send)
|
# await send_block_function(b'\x01' + to_send)
|
||||||
yield b'\x01' + to_send
|
yield b'\x01' + to_send
|
||||||
to_send = b''
|
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)
|
# await send_block_function(b'\x01' + to_send)
|
||||||
yield b'\x01' + to_send
|
yield b'\x01' + to_send
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user