Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Make Federation connections (links) specify a name #40

Merged
merged 3 commits into from
Oct 19, 2016

Conversation

acogoluegnes
Copy link
Contributor

The connection name pattern is Federation [Upstream name] [Policy name].

Fixes #39

screenshot from 2016-10-13 17 56 53

@acogoluegnes
Copy link
Contributor Author

A test failed, but it looks like it was a transient failure.

connection_name(undefined, undefined).

connection_name(Upstream, Policy) when is_binary(Upstream), is_binary(Policy) ->
<<<<"Federation ">>/binary, Upstream/binary, <<" ">>/binary, Policy/binary>>;
Copy link
Member

Choose a reason for hiding this comment

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

Please make it "Federation link (upstream: …, policy: …)".

<<<<"Federation ">>/binary, Upstream/binary, <<" ">>/binary, Policy/binary>>;

connection_name(_, _) ->
<<"Federation">>.
Copy link
Member

Choose a reason for hiding this comment

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

"Federation link" would be clearer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Looks like this now:

screenshot from 2016-10-19 09 37 17

@michaelklishin michaelklishin self-assigned this Oct 19, 2016
{ok, Conn, Ch} -> erlang:monitor(process, Ch),
{ok, Conn, Ch};
E -> E
end.

open(Params) ->
case amqp_connection:start(Params) of
open(Params, Source) ->
Copy link
Member

Choose a reason for hiding this comment

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

The parameter seems to be a name, not a source.

@michaelklishin michaelklishin merged commit f80e793 into stable Oct 19, 2016
@dumbbell dumbbell deleted the rabbitmq-federation-39 branch January 3, 2018 13:12
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.

2 participants