Skip to content

Commit f78c5fb

Browse files
committed
use a queue rather than a list. fixes rails#12069
1 parent f85c4c6 commit f78c5fb

File tree

1 file changed

+1
-1
lines changed
  • activesupport/lib/active_support/notifications

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/notifications/fanout.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def matches?(subscriber_or_name)
108108

109109
class Timed < Evented
110110
def initialize(pattern, delegate)
111-
@timestack = []
111+
@timestack = Queue.new
112112
super
113113
end
114114

0 commit comments

Comments
 (0)