Skip to content

Commit

Permalink
for consistency, use FastTrack() builder instead of subclassing
Browse files Browse the repository at this point in the history
manually.
this allows to introduce compile-time optimization.
  • Loading branch information
apotonick committed Oct 1, 2024
1 parent 72c3fd1 commit e04338c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/trailblazer/macro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def self.task_adapter_for_decider(decider_with_step_interface, variable_name:)
def self.block_activity_for(block_activity, &block)
return block_activity, block_activity.to_h[:outputs] unless block_given?

block_activity = Class.new(Activity::FastTrack, &block) # TODO: use Wrap() logic!
# block_activity = Class.new(Activity::FastTrack, &block) # TODO: use Wrap() logic!
block_activity = Activity.FastTrack(&block) # TODO: use Wrap() logic!
block_activity.extend Each::Transitive

return block_activity, block_activity.to_h[:outputs]
Expand Down

0 comments on commit e04338c

Please sign in to comment.