mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-11 11:31:32 +00:00
Update comments, remove solved TODO
This commit is contained in:
parent
0bf82a1745
commit
8ab4dd20df
3 changed files with 2 additions and 3 deletions
|
@ -120,7 +120,6 @@ defmodule Pleroma.HTTP.AdapterHelper do
|
|||
end
|
||||
end
|
||||
|
||||
# TODO add Finch support once we have an AdapterHelper for it
|
||||
@spec can_stream? :: bool()
|
||||
def can_stream? do
|
||||
case Application.get_env(:tesla, :adapter) do
|
||||
|
|
|
@ -23,7 +23,7 @@ defmodule Pleroma.HTTP.AdapterHelper.Finch do
|
|||
|> maybe_stream()
|
||||
end
|
||||
|
||||
# Tesla Finch adapter uses response: :stream
|
||||
# Finch uses [response: :stream]
|
||||
defp maybe_stream(opts) do
|
||||
case Keyword.pop(opts, :stream, nil) do
|
||||
{true, opts} -> Keyword.put(opts, :response, :stream)
|
||||
|
|
|
@ -48,7 +48,7 @@ defmodule Pleroma.HTTP.AdapterHelper.Gun do
|
|||
Keyword.put(opts, :timeout, recv_timeout)
|
||||
end
|
||||
|
||||
# Tesla Gun adapter uses body_as: :stream
|
||||
# Gun uses [body_as: :stream]
|
||||
defp maybe_stream(opts) do
|
||||
case Keyword.pop(opts, :stream, nil) do
|
||||
{true, opts} -> Keyword.put(opts, :body_as, :stream)
|
||||
|
|
Loading…
Reference in a new issue