diff --git a/README.md b/README.md index b086a7c..36a3a0d 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,9 @@ A segment. For more details, see the function and method docstrings. ## Changelog +### Version 0.1.2 +- Bug fix + ### Version 0.1.1 - Bug fix: `__init__.py` tried to import from `_core` instead of `._core`. diff --git a/pyproject.toml b/pyproject.toml index 639d222..002cc0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "jeb-server-utils" -version = "0.1.1" +version = "0.1.2" description = "The utilities for the jeb server" dependencies = ["config-parser", "jeb-utils"] license = "Apache-2.0" \ No newline at end of file diff --git a/src/jeb_server_utils/_core.py b/src/jeb_server_utils/_core.py index 4252ae2..3f8e6e3 100644 --- a/src/jeb_server_utils/_core.py +++ b/src/jeb_server_utils/_core.py @@ -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