fix typo
This commit is contained in:
@@ -626,7 +626,7 @@ class Tag < ActiveRecord::Base
|
|||||||
if post_count < COSINE_SIMILARITY_RELATED_TAG_THRESHOLD && Delayed::Job.count < 200
|
if post_count < COSINE_SIMILARITY_RELATED_TAG_THRESHOLD && Delayed::Job.count < 200
|
||||||
delay(:queue => "default").update_related
|
delay(:queue => "default").update_related
|
||||||
elsif post_count >= COSINE_SIMILARITY_RELATED_TAG_THRESHOLD
|
elsif post_count >= COSINE_SIMILARITY_RELATED_TAG_THRESHOLD
|
||||||
sqs = SqsService.new(Danbooru.config.aws_sqs_queue_reltagcalc_url)
|
sqs = SqsService.new(Danbooru.config.aws_sqs_reltagcalc_url)
|
||||||
sqs.send_message("calculate #{name}")
|
sqs.send_message("calculate #{name}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ module Danbooru
|
|||||||
def aws_sqs_queue_url
|
def aws_sqs_queue_url
|
||||||
end
|
end
|
||||||
|
|
||||||
def aws_sqs_queue_reltagcalc_url
|
def aws_sqs_reltagcalc_url
|
||||||
end
|
end
|
||||||
|
|
||||||
def aws_sqs_region
|
def aws_sqs_region
|
||||||
|
|||||||
Reference in New Issue
Block a user