Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Support wrapped cross-net message delivery #10

Merged
merged 3 commits into from
Nov 16, 2022

Conversation

sergefdrv
Copy link
Contributor

@sergefdrv sergefdrv commented Nov 11, 2022

Changes

This pull request adds support for opt-in wrapped cross-net message delivery. The new delivery method allows the destination actor examine original cross-net message as passed to ApplyMessage method of the IPC gateway actor, i.e. to determine the full IPC address of the message's source actor.

Tests

Issues

src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@adlrocha adlrocha left a comment

Choose a reason for hiding this comment

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

Overall LGTM. But we should really migrate the unit tests from the builtin-actors fork here ASAP before we keep adding new stuff to the actor.

src/lib.rs Outdated Show resolved Hide resolved
@sergefdrv
Copy link
Contributor Author

Summary of changes:

  • Added send method to CrossMsg structure
  • Attempted to reduce confusion with identical identifiers (msg.msg)

@sergefdrv sergefdrv marked this pull request as ready for review November 15, 2022 22:35
Copy link
Contributor

@adlrocha adlrocha left a comment

Choose a reason for hiding this comment

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

Great job, I think this can be merged. Thanks!

src/cross.rs Show resolved Hide resolved
@sergefdrv sergefdrv merged commit 0267d4e into consensus-shipyard:main Nov 16, 2022
@sergefdrv sergefdrv deleted the wrapped-cross-msg branch November 16, 2022 20:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants