From 80ddc2428199e4ea5638ae9f080faceacd5c15fd Mon Sep 17 00:00:00 2001 From: Alex S Date: Thu, 8 Aug 2019 20:08:10 +0300 Subject: [PATCH] fix --- lib/pleroma/reverse_proxy/client/tesla.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/reverse_proxy/client/tesla.ex b/lib/pleroma/reverse_proxy/client/tesla.ex index d2944b9dc..9b0be5bda 100644 --- a/lib/pleroma/reverse_proxy/client/tesla.ex +++ b/lib/pleroma/reverse_proxy/client/tesla.ex @@ -26,14 +26,14 @@ defmodule Pleroma.ReverseProxy.Client.Tesla do end end - defp read_chunk!(client) do + defp read_chunk!(%{pid: pid, stream: stream, opts: opts}) do adapter = Application.get_env(:tesla, :adapter) unless adapter in @adapters do raise "#{adapter} doesn't support reading body in chunks" end - adapter.read_chunk(client) + adapter.read_chunk(pid, stream, opts) end def close(client) do