Skip to content

fix: wire indexDistribution.minChunkSize and maxChunkSize config to R… - #771

Open
songproducer wants to merge 1 commit into
yacy:masterfrom
songproducer:fix/index-dist-min-chunk-size
Open

fix: wire indexDistribution.minChunkSize and maxChunkSize config to R…#771
songproducer wants to merge 1 commit into
yacy:masterfrom
songproducer:fix/index-dist-min-chunk-size

Conversation

@songproducer

Copy link
Copy Markdown
Contributor

…WI transfer batch (#724)

INDEX_DIST_CHUNK_SIZE_MIN and _MAX constants were defined but never read. dhtMaxReferenceCount was set only from startChunkSize with no bounds enforcement. Clamp the initial value to [minChunkSize, maxChunkSize] so both config keys actually control the DHT reference count range.

…WI transfer batch (yacy#724)

INDEX_DIST_CHUNK_SIZE_MIN and _MAX constants were defined but never read.
dhtMaxReferenceCount was set only from startChunkSize with no bounds enforcement.
Clamp the initial value to [minChunkSize, maxChunkSize] so both config keys
actually control the DHT reference count range.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@songproducer

Copy link
Copy Markdown
Contributor Author

BTW I used Hermes agent and Claude code Sonnet for these bug fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant