1
0
Fork 0
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:
Jean Boussier 2019-09-03 16:10:56 +02:00
parent d05f1f036f
commit e623ccf921

View file

@ -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