Repository navigation
docs: rewrite README for accuracy and readability - #102
Open
MasterOfBinary wants to merge 1 commit into
Open
MasterOfBinary wants to merge 1 commit into
MasterOfBinary wants to merge 1 commit into
Conversation
Fix README errors found in review: - The helper-function snippet redeclared errs and reused a single-use Batch, so it did not compile and would have returned ErrBatchUsed. - The config rules did not say that a MaxItems or MaxTime of 0 means no maximum. - The DynamicConfig example used two separate updates, so a batch could start between them; it now uses Update. Document existing behavior that was missing: - The error channel must be read until it closes; sends block once the buffer fills, and canceling the context does not unblock them. - Done closes slightly before the error channel. - Config changes apply from the next batch. - Batches run concurrently, so processors may be called concurrently. Restructure for readability: fix the Contents list, merge the duplicate component sections, put install and a quick start first, replace the stale v0.5.0 release notes with a link to CHANGELOG.md, and describe each built-in source and processor. The Quick Start now uses a single batch so its output order is guaranteed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012mrmR4Bfwbgy98KvB7WzKG
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #102 +/- ##
=======================================
Coverage 96.76% 96.76%
=======================================
Files 12 12
Lines 371 371
=======================================
Hits 359 359
Misses 9 9
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rewrites
README.mdso it matches the current API and is easier to follow. This is a README-only change.Errors fixed
errs :=twice in one scope and calledRunBatchAndWaiton aBatchthat had already been passed toGo. That second call would returnErrBatchUsed. The two approaches are now separate snippets, and each creates its ownBatch.MaxItemsorMaxTimeof0means no maximum, and that the min values are lowered only when the max is nonzero.UpdateBatchSizefollowed byUpdateTimingtake two separate locks, so a batch could start between them. The example now usesUpdate(ConfigValues{...}).Existing behavior that is now documented
Done()unless something is already reading the error channel.Donecloses slightly before the error channel.Restructure
CHANGELOG.md. There are unreleased breaking changes since v0.5.0.Verification
go vetagainst the current code.2 4 6 8 10in all 200 runs under-race.WithBufferConfigpanic afterGo, normalization rules, field names and defaults of the built-ins, and helper behavior.gofmt -l .is clean,go vet ./...passes, andgo test -race ./...passes.golangci-lintwasn't run locally.Muse Code drafted the rewrite. Claude Code reviewed it, verified it and tightened the Configuration section.
🤖 Generated with Claude Code
https://claude.ai/code/session_012mrmR4Bfwbgy98KvB7WzKG