From 178cf076908ccafe218b08a6fc552f6336ba7171 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 24 Mar 2021 13:28:08 -0500 Subject: [PATCH] discord: increase timeout of /count command. --- app/logical/discord_slash_command/count_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/discord_slash_command/count_command.rb b/app/logical/discord_slash_command/count_command.rb index 062fbce3d..c81739baa 100644 --- a/app/logical/discord_slash_command/count_command.rb +++ b/app/logical/discord_slash_command/count_command.rb @@ -12,7 +12,7 @@ class DiscordSlashCommand def call tags = params[:tags] query = PostQueryBuilder.new(tags, User.anonymous, tag_limit: nil).normalized_query - count = query.fast_count(estimate_count: true, skip_cache: true) + count = query.fast_count(timeout: 9_000, estimate_count: false, skip_cache: true) respond_with("`#{tags}`: #{count} posts") end