Skip to content

Commit

Permalink
fix Sidekiq::Logger::Formatters::Base#ctx (#699)
Browse files Browse the repository at this point in the history
The return value of `ctx` should not be `Context`, but `Hash[String, untyped]`, which is the return value of `Context.current`.

see: https://github.com/sidekiq/sidekiq/blob/630d22fce8821aaab96ba9de6cd0440512af42c7/lib/sidekiq/logger.rb#L85
  • Loading branch information
rhiroe authored Oct 25, 2024
1 parent f745a00 commit 47a059f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gems/sidekiq/7.0/logger.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Sidekiq

module Formatters
class Base < ::Logger::Formatter
def ctx: () -> Context
def ctx: () -> Hash[String, untyped]

def format_context: () -> String?

Expand Down

0 comments on commit 47a059f

Please sign in to comment.