don't stream in benchmark env
authorAlexander <alex.strizhakov@gmail.com>
Tue, 15 Oct 2019 12:16:17 +0000 (15:16 +0300)
committerAlexander <alex.strizhakov@gmail.com>
Tue, 15 Oct 2019 12:16:17 +0000 (15:16 +0300)
lib/pleroma/web/streamer/streamer.ex

index 8cf719277f4774de6197cb20b283c51bc2a3ebfb..2fc7ac8cf694a2b4a6ecd30a3466b0c967fa7ee5 100644 (file)
@@ -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