Skip to content

Commit

Permalink
#5 Remove supervisor name
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseStimpson committed May 24, 2024
1 parent 8826f17 commit 54d7099
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions lib/ecto/adapters/foundationdb.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,22 @@ defmodule Ecto.Adapters.FoundationDB do
Edit your `config.exs` file to include the following:
```elixir
config :my_app,
ecto_repos: [MyApp.Repo]
config :my_app, MyApp.Repo,
cluster_file: "/etc/foundationdb/fdb.cluster"
```
In your app's supervisor, you can start the repo as follows:
```elixir
children = [
...
MyApp.Repo,
...
]
Supervisor.start_link(...)
```
## Tenants
EctoFoundationDB requires the use of [FoundationDB Tenants](https://apple.github.io/foundationdb/tenants.html).
Expand Down
2 changes: 1 addition & 1 deletion lib/ecto/adapters/foundationdb/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Ecto.Adapters.FoundationDB.Supervisor do
use Supervisor

def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
Supervisor.start_link(__MODULE__, init_arg)
end

@impl true
Expand Down

0 comments on commit 54d7099

Please sign in to comment.