refactor: rename core.registry.LegacyRegistry -> core.registry.InterfaceRegistrar (#19758)
This commit is contained in:
@@ -189,9 +189,9 @@ func (c coreAppModuleAdaptor) RegisterGRPCGatewayRoutes(ctx client.Context, mux
|
||||
}
|
||||
|
||||
// RegisterInterfaces implements HasRegisterInterfaces
|
||||
func (c coreAppModuleAdaptor) RegisterInterfaces(reg registry.LegacyRegistry) {
|
||||
func (c coreAppModuleAdaptor) RegisterInterfaces(reg registry.InterfaceRegistrar) {
|
||||
if mod, ok := c.module.(interface {
|
||||
RegisterInterfaces(registry.LegacyRegistry)
|
||||
RegisterInterfaces(registry.InterfaceRegistrar)
|
||||
}); ok {
|
||||
mod.RegisterInterfaces(reg)
|
||||
}
|
||||
|
||||
@@ -312,10 +312,10 @@ func (m *Manager) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers all module interface types
|
||||
func (m *Manager) RegisterInterfaces(registry registry.LegacyRegistry) {
|
||||
func (m *Manager) RegisterInterfaces(registrar registry.InterfaceRegistrar) {
|
||||
for _, b := range m.Modules {
|
||||
if mod, ok := b.(appmodule.HasRegisterInterfaces); ok {
|
||||
mod.RegisterInterfaces(registry)
|
||||
mod.RegisterInterfaces(registrar)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user