Skip to content

Commit

Permalink
add name for finch adaptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdallahj94 committed Sep 5, 2023
1 parent 5be2457 commit a6a659c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/firestore/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ defmodule Firestore.Repo do
@tesla_adapter opts[:tesla_adapter]
@pool_size opts[:pool_size]
@read_only opts[:read_only]
#Used for Finch tesla adapter
@name opts[:name]

def config() do
@otp_app
|> Application.get_env(__MODULE__, [])
|> Keyword.merge(otp_app: @otp_app, tesla_adapter: @tesla_adapter, pool_size: @pool_size)
|> Keyword.merge(otp_app: @otp_app, tesla_adapter: @tesla_adapter, pool_size: @pool_size, name: @name)
|> Map.new()
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule Firestore.MixProject do
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger,:ibrowse]
extra_applications: [:logger]
]
end

Expand Down

0 comments on commit a6a659c

Please sign in to comment.