From 0c68cf435725a252be54988dfb6a914e3276b766 Mon Sep 17 00:00:00 2001 From: Alex S Date: Wed, 14 Aug 2019 15:54:25 +0300 Subject: [PATCH] like this --- lib/pleroma/http/connection.ex | 1 - lib/pleroma/http/http.ex | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pleroma/http/connection.ex b/lib/pleroma/http/connection.ex index 20c83c572..222a8b6aa 100644 --- a/lib/pleroma/http/connection.ex +++ b/lib/pleroma/http/connection.ex @@ -24,7 +24,6 @@ defmodule Pleroma.HTTP.Connection do middleware = [Tesla.Middleware.FollowRedirects] adapter = Application.get_env(:tesla, :adapter) options = options(opts) - IO.inspect(options) Tesla.client(middleware, {adapter, options}) end diff --git a/lib/pleroma/http/http.ex b/lib/pleroma/http/http.ex index 1846749c0..3ad891d11 100644 --- a/lib/pleroma/http/http.ex +++ b/lib/pleroma/http/http.ex @@ -62,7 +62,7 @@ defmodule Pleroma.HTTP do end defp get_conn_for_gun(url, options) do - case Pleroma.Gun.Connections.try_to_get_gun_conn(url) do + case Pleroma.Gun.Connections.get_conn(url) do nil -> options