8000 Use the `@block` instance variable as it corresponds to the user-prov… · socketry/async@b8592c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit b8592c1

Browse files
committed
Use the @block instance variable as it corresponds to the user-provided code.
1 parent 7b66a3b commit b8592c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/traces/provider/async/task.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def schedule(&block)
1313
end
1414

1515
attributes = {
16-
"block" => block,
16+
# We use the instance variable as it corresponds to the user-provided block.
17+
"block" => @block,
1718
"transient" => self.transient?,
1819
}
1920

0 commit comments

Comments
 (0)
0