Skip to content

Conversation

VanshSahay
Copy link

Problem

Calling [email protected]/commit (and other httpsig-based commit paths) could fail or return unexpected output because the proxy fed the result of hb_message:with_only_committed/2 directly into hb_message:uncommitted/2.

Root Cause

hb_message:with_only_committed/2 returns {ok, Map}, but the code assumed it returned Map. Passing the tuple to hb_message:uncommitted/2 caused errors (e.g., badmap/function_clause) and broken outputs.

Solution

Pattern match the {ok, Map} return and pass the unwrapped Map to hb_message:uncommitted/2.

Notes

No config changes required.
Similar to a previous PR I made #446

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