Skip to content

Commit 7bb0058

Browse files
tgalliceclaude
andcommitted
rb/thrift: merge processor comments
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent e81e846 commit 7bb0058

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/rb/lib/thrift/processor.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def initialize(handler, middlewares = [], logger=nil)
9191
@logger = logger
9292
end
9393
@middleware = Middleware.wrap(middlewares)
94-
95-
# Walk ancestors so services extending another one expose inherited methods.
94+
# Walk ancestors child first so inherited methods are exposed and overrides win.
9695
# Child first: the closest definition wins and is built only once.
9796
@processors = self.class.ancestors.each_with_object({}) do |klass, acc|
9897
next unless klass.const_defined?(:METHODS, false)

0 commit comments

Comments
 (0)