Skip to content

Commit

Permalink
Use the @block instance variable as it corresponds to the user-prov…
Browse files Browse the repository at this point in the history
…ided code.
  • Loading branch information
ioquatix committed Jan 30, 2025
1 parent 7b66a3b commit b8592c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/traces/provider/async/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def schedule(&block)
end

attributes = {
"block" => block,
# We use the instance variable as it corresponds to the user-provided block.
"block" => @block,
"transient" => self.transient?,
}

Expand Down

0 comments on commit b8592c1

Please sign in to comment.