lib/wayfarer/middleware/dedup.rb in wayfarer-0.4.3 vs lib/wayfarer/middleware/dedup.rb in wayfarer-0.4.4

- old
+ new

@@ -1,10 +1,15 @@ # frozen_string_literal: true module Wayfarer module Middleware class Dedup + extend Base + def call(task) + # Was task routed by a previous controller already? + return yield if task.metadata.action + return if task.barrier.seen?(task.url) begin yield if block_given? rescue StandardError => e