Skip to content

Conversation

nick1udwig
Copy link
Member

Problem

Caps don't work properly. This is because of the contains_key() call here: https://github.com/kinode-dao/kinode/blob/main/kinode/src/kernel/mod.rs#L990

Solution

contains_key() wants a PartialEq as well as a Hash. PartialEq JSON-ifies the params field before comparison, but Hash does not. Make Hash JSON-ify params.

Testing

In the kinode-book/src/code, you can kit t on all but the http packages and it will fail on main, but work on this branch.

Docs Update

N/A

Notes

I also merged the hotfix commits here. The actual fix is commit 7413646

@nick1udwig nick1udwig requested a review from dr-frmr July 8, 2024 23:59
Copy link
Contributor

@dr-frmr dr-frmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, we should merge this and put out 0.8.3 right away. Surprised it didn't break more stuff!

@nick1udwig nick1udwig merged commit a5e12fc into release-candidate Jul 9, 2024
@nick1udwig nick1udwig deleted the hf/fix-caps branch July 9, 2024 00:35
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.

3 participants