Skip to content

Commit c011759

Browse files
committed
Fix multiplex tracing docs, it should be super not yield. fixes #5599
1 parent 2b238b1 commit c011759

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

guides/queries/multiplex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Multiplex analyzers may return {{ "AnalysisError" | api_doc }} to halt execution
115115

116116
You can add hooks for each multiplex run with {% internal_link "trace modules", "/queries/tracing" %}.
117117

118-
The trace module may implement `def execute_multiplex(multiplex:)` which `yield`s to allow the multiplex to execute. See {{ "Execution::Multiplex" | api_doc }} for available methods.
118+
The trace module may implement `def execute_multiplex(multiplex:)` which calls `super` to allow the multiplex to execute. See {{ "Execution::Multiplex" | api_doc }} for available methods.
119119

120120
For example:
121121

@@ -124,7 +124,7 @@ For example:
124124
module MultiplexCounter
125125
def execute_multiplex(multiplex:)
126126
Rails.logger.info("Multiplex size: #{multiplex.queries.length}")
127-
yield
127+
super
128128
end
129129
end
130130

0 commit comments

Comments
 (0)