summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <alex.strizhakov@gmail.com>2019-10-15 15:16:17 +0300
committerAlexander <alex.strizhakov@gmail.com>2019-10-15 15:16:17 +0300
commite7bb762ec256bb5dc607797c042aa9432a9aa993 (patch)
treecb1d7c131a8776d4308215347e50d92b8ade1ff4
parentecd7ac855bfc6a8e2f95c099b442d9f0f9117e6b (diff)
downloadpleroma-e7bb762ec256bb5dc607797c042aa9432a9aa993.tar.gz
pleroma-e7bb762ec256bb5dc607797c042aa9432a9aa993.zip
don't stream in benchmark env
-rw-r--r--lib/pleroma/web/streamer/streamer.ex6
1 files changed, 3 insertions, 3 deletions
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