Skip to content

Commit

Permalink
Fix max
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Feb 19, 2024
1 parent 79c52dc commit ebaaa44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def finalize_options(self):

setup(
name="tonpy" if not IS_DEV else "tonpy-dev",
version="0.0.0.1.2b0" if not IS_DEV else "0.0.0.2.9c1",
version="0.0.0.1.2b0" if not IS_DEV else "0.0.0.3.0a1",
author="Disintar LLP",
author_email="andrey@head-labs.com",
description="Types / API for TON blockchain",
Expand Down
2 changes: 1 addition & 1 deletion src/tonpy/blockscanner/blockscanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def chunk_by_txs(self, data, cs=100):
worker_to_chunk[current_worker].append(i)
cur_c += weight

return worker_to_chunk.values(), min(min(1, len(worker_to_chunk)), self.nproc)
return worker_to_chunk.values(), max(min(1, len(worker_to_chunk)), self.nproc)

def load_mcs(self, from_, to_):
mc_data = []
Expand Down

0 comments on commit ebaaa44

Please sign in to comment.