fix for timeout clause
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 21 Feb 2020 13:56:55 +0000 (16:56 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 21 Feb 2020 13:56:55 +0000 (16:56 +0300)
lib/pleroma/http/adapter/gun.ex

index 0a6872ad65a25c4f917a792859702e0fc5863728..7b7e38d8c39be9d25051b805c951323a211fac2f 100644 (file)
@@ -117,7 +117,7 @@ defmodule Pleroma.HTTP.Adapter.Gun do
         opts
     catch
       :exit, {:timeout, {_, operation, [_, {method, _}, _]}} ->
-        messages_len =
+        {:message_queue_len, messages_len} =
           :gun_connections
           |> Process.whereis()
           |> Process.info(:message_queue_len)