mperham/sidekiq — comment on commit 1a028c4a2f41ef7458e34aa634bba0575cc4127e
File: lib/sidekiq/middleware.rb line 94
By ryanlecompte:

I don't think there would be a memory leak unless the middleware didn't run for some reason. I think if I add the removal in an ensure clause then there wouldn't be a memory leak. Also, I am not sure I understand your comment about not adding the message itself? Right now what gets added is a base64 encoding of the full message, and then the same base64 message is removed in the middleware.