diff --git a/gems/sidekiq/7.0/_test/test_2.rb b/gems/sidekiq/7.0/_test/test_2.rb index 5cff2c7b..dd741a60 100644 --- a/gems/sidekiq/7.0/_test/test_2.rb +++ b/gems/sidekiq/7.0/_test/test_2.rb @@ -10,6 +10,7 @@ class Hook end class Middleware + include Sidekiq::ServerMiddleware end HardWorker.perform_async(1, 2, 3) diff --git a/gems/sidekiq/7.0/middleware.rbs b/gems/sidekiq/7.0/middleware.rbs index d2f73ff1..0229f622 100644 --- a/gems/sidekiq/7.0/middleware.rbs +++ b/gems/sidekiq/7.0/middleware.rbs @@ -48,4 +48,14 @@ module Sidekiq def initialize: (untyped config, Class klass, *untyped args) -> void end end + + module ServerMiddleware + attr_accessor config: Config + + def redis_pool: () -> ConnectionPool[RedisClientAdapter] + + def logger: () -> Logger + + def redis: () { (RedisClientAdapter::CompatClient) -> void } -> void + end end