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

Commit

Permalink
Remove code using Mix module from Publisher (#116)
Browse files Browse the repository at this point in the history
* Remove use of Mix module from Publisher
* Use :gen_rmq as the default if there's no config[:app_id]
  • Loading branch information
binaryape authored and Joel C committed Oct 7, 2019
1 parent 49d9cc8 commit 069a1cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/publisher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ defmodule GenRMQ.Publisher do

use GenServer
use AMQP
alias Mix.Project

require Logger

Expand Down Expand Up @@ -231,7 +230,7 @@ defmodule GenRMQ.Publisher do
end

defp app_id(config) do
config[:app_id] || Keyword.get(Project.config(), :app)
config[:app_id] || :gen_rmq
end

##############################################################################
Expand Down

0 comments on commit 069a1cd

Please sign in to comment.