From: Alexander Date: Tue, 15 Oct 2019 12:16:17 +0000 (+0300) Subject: don't stream in benchmark env X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e7bb762ec256bb5dc607797c042aa9432a9aa993;p=akkoma don't stream in benchmark env --- diff --git a/lib/pleroma/web/streamer/streamer.ex b/lib/pleroma/web/streamer/streamer.ex index 8cf719277..2fc7ac8cf 100644 --- a/lib/pleroma/web/streamer/streamer.ex +++ b/lib/pleroma/web/streamer/streamer.ex @@ -49,7 +49,7 @@ defmodule Pleroma.Web.Streamer do end end - defp handle_should_send(_) do - true - end + defp handle_should_send(:benchmark), do: false + + defp handle_should_send(_), do: true end