mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Intern ActiveJob queue_name
Memory profiling shows that the queue name is always duplicated ``` Retained String Report ----------------------------------- ... 217 "default" 200 /tmp/bundle/ruby/2.6.0/bundler/gems/rails-59e746d4d07b/activejob/lib/active_job/queue_name.rb:52 ```
This commit is contained in:
parent
d05f1f036f
commit
e623ccf921
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ module ActiveJob
|
|||
def queue_name_from_part(part_name) #:nodoc:
|
||||
queue_name = part_name || default_queue_name
|
||||
name_parts = [queue_name_prefix.presence, queue_name]
|
||||
name_parts.compact.join(queue_name_delimiter)
|
||||
-name_parts.compact.join(queue_name_delimiter)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue