Skip to content

Commit 3b6f028

Browse files
committed
adapter macro does not pass down specific options to finch
1 parent 0667e3b commit 3b6f028

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

example/config/runtime.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import Config
22

33
config :logger, :console, metadata: [:bot, :chat_id]
4-
config :tesla, adapter: {Tesla.Adapter.Finch, name: Adapter.Finch}
4+
config :tesla, adapter: {Tesla.Adapter.Finch, name: Adapter.Finch, receive_timeout: 40_000}

example/example_bot.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Mix.install(
1212
defmodule Adapter.Finch do
1313
use Tesla
1414

15-
adapter Tesla.Adapter.Finch, name: __MODULE__, receive_timeout: 40_000
15+
adapter Tesla.Adapter.Finch, name: __MODULE__
1616
end
1717

1818
defmodule SleepBot do

example/example_chatbot.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Mix.install(
1212
defmodule Adapter.Finch do
1313
use Tesla
1414

15-
adapter Tesla.Adapter.Finch, name: __MODULE__, receive_timeout: 40_000
15+
adapter Tesla.Adapter.Finch, name: __MODULE__
1616
end
1717

1818
defmodule CountChatBot do

0 commit comments

Comments
 (0)