Skip to content

Commit

Permalink
Fix Elixir 1.17 deprecation in Pigeon 1.6.x (#262)
Browse files Browse the repository at this point in the history
* update config import

* fix Elixir 1.17 deprecation
  • Loading branch information
nathany-copia authored Aug 8, 2024
1 parent 6fa0f0d commit 6bc63f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
use Mix.Config
import Config

import_config "#{Mix.env()}.exs"
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Mix.Config
import Config

config :pigeon, :fcm,
fcm_default: %{
Expand Down
2 changes: 1 addition & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Mix.Config
import Config

config :pigeon, :test,
fcm_key: System.get_env("GCM_KEY"),
Expand Down
2 changes: 1 addition & 1 deletion lib/pigeon.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Pigeon do

@doc false
def start(_type, _args) do
Client.default().start
Client.default().start()
opts = [strategy: :one_for_one, name: :pigeon]
Supervisor.start_link(workers(), opts)
end
Expand Down

0 comments on commit 6bc63f2

Please sign in to comment.