Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Mediators?? #33

Open
qikdauie opened this issue Jun 10, 2024 · 0 comments
Open

Multiple Mediators?? #33

qikdauie opened this issue Jun 10, 2024 · 0 comments

Comments

@qikdauie
Copy link

qikdauie commented Jun 10, 2024

Hello, in the README.md examples it mentions using the routed_by() method of the Message struct multiple times in reverse order to facilitate mediating with multiple mediators.

This may have worked in <=v0.4.0, but now routed_by() in v0.6.1-v0.7.2 returns a String. The only way that I can see to perform this operation is to call routed_by() once, then calling receive(), then routed_by() again for each remaining mediator, but this does not make any sense because receive will unwrap the message... Please advise.

Also, what If I am trying to mediate a seal_signed() message? seal_signed() returns a String as well, how would I call routed_by on the message after its gone through the seal_signed() method?

Any pointers or advise would be greatly appreciated. Thank you in advance.

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

No branches or pull requests

1 participant