Skip to content

smartcontract: rename subscribe processor for clarity#3499

Open
martinsander00 wants to merge 2 commits intomainfrom
ms/subscribe-rename
Open

smartcontract: rename subscribe processor for clarity#3499
martinsander00 wants to merge 2 commits intomainfrom
ms/subscribe-rename

Conversation

@martinsander00
Copy link
Copy Markdown
Contributor

Resolves: #3498

Summary

  • Rename process_subscribe_multicastgroupprocess_update_multicastgroup_subscription and subscribe_user_to_multicastgroupupdate_user_multicastgroup_subscription to reflect that these functions handle both subscribe and unsubscribe
  • Simplify the status validation guard to use a positive is_subscribe check instead of double-negated !is_unsubscribe_only, making the unsubscribe bypass for pending users easier to reason about

Lines of Code

Section Added Removed
serviceability processor +7 -11
serviceability entrypoint +2 -2
create_subscribe processor +2 -2
tests +2 -2

Testing Verification

Rename subscribe_user_to_multicastgroup → update_user_multicastgroup_subscription
and process_subscribe_multicastgroup → process_update_multicastgroup_subscription
to reflect that these functions handle both subscribe and unsubscribe. Simplify
the status guard to use a positive is_subscribe check instead of double-negated
!is_unsubscribe_only.

Resolves #3498
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.

smartcontract: rename multicast group subscribe processor for clarity

1 participant