diff options
author | lain <lain@soykaf.club> | 2021-02-27 19:37:08 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2021-02-27 19:37:08 +0000 |
commit | dd937ae625d34033d7a752f914e9b9ff3fb24ae4 (patch) | |
tree | 9ebf3e42dd45db9ad13ebc1cf8b9becd5d17f0e9 | |
parent | 840686ecd5b57a210415539d4f5cc1038d25e5ce (diff) | |
parent | da5d21a1cf6050e35bbc8637b2fc7c44a8476994 (diff) | |
download | pleroma-dd937ae625d34033d7a752f914e9b9ff3fb24ae4.tar.gz |
Merge branch 'fix/repo-terminate' into 'develop'
don't use continue in Stats init for test env
See merge request pleroma/pleroma!3349
-rw-r--r-- | lib/pleroma/stats.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/stats.ex b/lib/pleroma/stats.ex index b096a9b1e..3e3f24c2c 100644 --- a/lib/pleroma/stats.ex +++ b/lib/pleroma/stats.ex @@ -23,7 +23,11 @@ defmodule Pleroma.Stats do @impl true def init(_args) do - {:ok, nil, {:continue, :calculate_stats}} + if Pleroma.Config.get(:env) != :test do + {:ok, nil, {:continue, :calculate_stats}} + else + {:ok, calculate_stat_data()} + end end @doc "Performs update stats" |