refactor: rename core.registry.LegacyRegistry -> core.registry.InterfaceRegistrar (#19758)

This commit is contained in:
Matt Kocubinski
2024-03-14 17:53:31 +00:00
committed by GitHub
parent 1b545a571f
commit d54335e1f9
53 changed files with 136 additions and 136 deletions
+2 -2
View File
@@ -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)
}
+2 -2
View File
@@ -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)
}
}
}