Update benchmark mix task
authorEgor Kislitsyn <egor@kislitsyn.com>
Fri, 31 May 2019 09:37:33 +0000 (16:37 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 5 Jun 2019 09:37:43 +0000 (16:37 +0700)
lib/mix/tasks/benchmark.ex

index 0fbb4dbb14ddb5175d263a3889275aa31a91dc33..e4b1a638af17c23d125d8ab77db4ffaaf60ceb89 100644 (file)
@@ -7,7 +7,7 @@ defmodule Mix.Tasks.Pleroma.Benchmark do
 
     Benchee.run(%{
       "search" => fn ->
-        Pleroma.Web.MastodonAPI.MastodonAPIController.status_search(nil, "cofe")
+        Pleroma.Activity.search(nil, "cofe")
       end
     })
   end