mhenrixon/sidekiq-unique-jobs

Should client middleware also be added to the Sidekiq server config?

gstokkink opened this issue · 2 comments

Hi,

In the installation instructions, under Add the middleware, it states the following bit twice, once under the server config and once under the client config:

  config.client_middleware do |chain|
    chain.add SidekiqUniqueJobs::Middleware::Client
  end

Is this correct? You'd expect client middleware to only be configured on the Sidekiq client, right?

That's correct, the server also acts as a client when solving conflicts etc.

Alright, just checking, thanks for your quick reply!

Edit: actually, I wanted to make a discussion for this but accidently created an issue instead. Apologies.