Ensure we reset state for `Messagebus.track_publish`.
This commit is contained in:
parent
e8f19e004e
commit
0d46c7a19b
|
@ -13,8 +13,9 @@ module MessageBus::DiagnosticsHelper
|
|||
def track_publish
|
||||
@tracking = tracking = []
|
||||
yield
|
||||
@tracking = nil
|
||||
tracking
|
||||
ensure
|
||||
@tracking = nil
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue