Skip to content

Commit

Permalink
Merge pull request #16 from conduitframework/feature/allow-adapter-to…
Browse files Browse the repository at this point in the history
…-specify-source

Fix to allow adapter to specify the source as in MQTT adapter
  • Loading branch information
jisikoff committed Oct 19, 2018
2 parents 6743634 + f777760 commit 3b9c3ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -19,3 +19,7 @@ erl_crash.dump

/plt
.elixir_ls

# Intellij
/.idea
*.iml
2 changes: 1 addition & 1 deletion lib/conduit/broker/incoming_scope.ex
Expand Up @@ -75,7 +75,7 @@ defmodule Conduit.Broker.IncomingScope do
|> Enum.map(&{:pipeline, &1})
|> Enum.reverse()

plugs = [{route.subscriber, route.opts} | pipeline_plugs] ++ [{:put_source, source}]
plugs = [{route.subscriber, route.opts} | pipeline_plugs] ++ [{:put_new_source, source}]
Conduit.Plug.Builder.compile(plugs, quote(do: & &1))
end

Expand Down

0 comments on commit 3b9c3ae

Please sign in to comment.