From e087bb316087572ad3dc65ad9b9373f1e459d44e Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 14 Nov 2013 20:30:11 -0800 Subject: [PATCH] Fix client middleware sample --- lib/sidekiq/middleware/chain.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/sidekiq/middleware/chain.rb b/lib/sidekiq/middleware/chain.rb index 09e0f6bb..cf138671 100644 --- a/lib/sidekiq/middleware/chain.rb +++ b/lib/sidekiq/middleware/chain.rb @@ -49,13 +49,16 @@ module Sidekiq # end # end # - # This is an example of a minimal client middleware: + # This is an example of a minimal client middleware, note + # the method must return the result or the job will not push + # to Redis: # # class MyClientHook # def call(worker_class, msg, queue) # puts "Before push" - # yield + # result = yield # puts "After push" + # result # end # end #