Skip to content

Instantly share code, notes, and snippets.

@jamhed
Created May 31, 2016 15:52
Show Gist options
  • Save jamhed/00b4ee5e93b73f88da21a3b58c3f26f2 to your computer and use it in GitHub Desktop.
Save jamhed/00b4ee5e93b73f88da21a3b58c3f26f2 to your computer and use it in GitHub Desktop.
get_bindings() ->
get_bindings(kz_config:get(amqp, use_federation)).
get_bindings([_Federation=true]) ->
[{'notifications', [{'restrict_to', ?RESTRICT_TO}, 'federate']}, {'self', []}];
get_bindings(_) ->
[{'notifications', [{'restrict_to', ?RESTRICT_TO}]}, {'self', []}].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment