Skip to content

Conversation

@jiahuili430
Copy link
Contributor

@jiahuili430 jiahuili430 commented Jan 23, 2025

Overview

When running with old version of Clouseau, it will return {ok, null}
when we call clouseau_rpc:version().. So add is_binary/1 to prevent
badarg errors. Also simplify the code by extracting the response to
get_versions/0 function.

Testing recommendations

Related Issues or Pull Requests

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • Documentation changes were made in the src/docs folder
  • Documentation changes were backported (separated PR) to affected branches

@jiahuili430 jiahuili430 force-pushed the extract-versions-response branch 2 times, most recently from b431e88 to afe741c Compare January 23, 2025 20:31
@jiahuili430 jiahuili430 marked this pull request as ready for review January 23, 2025 21:41
@jiahuili430 jiahuili430 force-pushed the extract-versions-response branch from afe741c to 7c7d8fc Compare January 23, 2025 21:45
Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

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

+1

When running with old version of Clouseau, it will return `{ok, null}`
when we call `clouseau_rpc:version().`. So add `is_binary/1` to prevent
`badarg` errors. Also simplify the code by extracting the response to
`get_versions/0` function.
@jiahuili430 jiahuili430 force-pushed the extract-versions-response branch from 7c7d8fc to 75a13e4 Compare January 23, 2025 22:13
Copy link
Contributor

@jaydoane jaydoane left a comment

Choose a reason for hiding this comment

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

Nice!

@jiahuili430 jiahuili430 merged commit faa4fc8 into main Jan 24, 2025
23 checks passed
@jiahuili430 jiahuili430 deleted the extract-versions-response branch January 24, 2025 02:55
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