Skip to content

fix(docs): correct {:cont} docstring — processing continues, not halts#557

Open
aadhar-build wants to merge 1 commit into
brainlid:mainfrom
aadhar-build:fix/issue-215-json-processor-docstring-cont
Open

fix(docs): correct {:cont} docstring — processing continues, not halts#557
aadhar-build wants to merge 1 commit into
brainlid:mainfrom
aadhar-build:fix/issue-215-json-processor-docstring-cont

Conversation

@aadhar-build
Copy link
Copy Markdown

Summary

The JsonProcessor.run/2 docstring incorrectly described the {:cont, %Message{}} return value as stopping further processing:

- `{:cont, %Message{}}` - The returned message replaces the one being
  processed and **no additional processors are run**.

This is the opposite of what :cont does. Looking at the implementation (line 131), {:cont, ...} continues processing through subsequent processors — it's {:halt, ...} that stops further processors, as the very next bullet in the docstring correctly states.

Change

One line: corrected "no additional processors are run" → "processing continues with subsequent processors"

No code changes. Documentation only.

Fixes #215

The docstring for JsonProcessor.run/2 incorrectly stated that returning
{:cont, %Message{}} means "no additional processors are run". The actual
implementation returns {:cont, ...} which continues processing through
subsequent processors — {:halt, ...} is what stops further processing.
Aligns the documented behaviour with the code and the :cont/:halt semantics.

Fixes brainlid#215
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.

Improve the documentation and semantics of message processors

1 participant