Last active
September 18, 2018 23:06
-
-
Save KamilLelonek/659195d4371796d299675d6ab7b18d48 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule PostgresPubSub.Application do | |
use Application | |
def start(_type, _args), | |
do: Supervisor.start_link(children(), opts()) | |
defp children do | |
[ | |
PostgresPubSub.Repo | |
] | |
end | |
defp opts do | |
[ | |
strategy: :one_for_one, | |
name: PostgresPubSub.Supervisor | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment