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

allow forwarded messages to use existing connections and the outbound queue #631

Merged

Conversation

TelegramSam
Copy link
Contributor

This adjustment allows the mediator forward function to work with endpoint-less connections, either via active connections with return route, or via the outbound queue. (Sending to an endpoint was already supported.)

Signed-off-by: Sam Curren <telegramsam@gmail.com>
Signed-off-by: Sam Curren <telegramsam@gmail.com>
Signed-off-by: Sam Curren <telegramsam@gmail.com>
Signed-off-by: Sam Curren <telegramsam@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #631 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #631   +/-   ##
=======================================
  Coverage   96.85%   96.85%           
=======================================
  Files         248      248           
  Lines       13260    13264    +4     
=======================================
+ Hits        12843    12847    +4     
  Misses        417      417           

sklump
sklump previously approved these changes Jul 24, 2020
await responder.send(packed, connection_id=recipient.connection_id)
await responder.send(
packed,
connection_id=recipient.connection_id,
Copy link
Member

Choose a reason for hiding this comment

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

Looking at the responder code, I think you can pass connection_targets as target_list, instead of passing connection_id, and it would avoid the need to look up the connection information twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I needed to pass connection_id as well, but it accepted both. Updated.

@swcurran
Copy link
Member

@andrewwhitehead -- good to go? This should be it for 0.5.4, I think.

@andrewwhitehead andrewwhitehead merged commit 66b55ac into hyperledger:master Aug 24, 2020
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.

None yet

5 participants