Refactor RegisterQueryServices -> RegisterServices (#7518)

* Refactor RegisterQueryServices -> RegisterServices

* Fix tests
This commit is contained in:
Aaron Craelius
2020-10-12 16:31:51 +00:00
committed by GitHub
parent 647ad0dd3c
commit 228728cce2
21 changed files with 84 additions and 71 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ func NewSimApp(
app.mm.RegisterInvariants(&app.CrisisKeeper)
app.mm.RegisterRoutes(app.Router(), app.QueryRouter(), encodingConfig.Amino)
app.mm.RegisterQueryServices(app.GRPCQueryRouter())
app.mm.RegisterServices(module.NewConfigurator(app.GRPCQueryRouter()))
// add test gRPC service for testing gRPC queries in isolation
testdata.RegisterTestServiceServer(app.GRPCQueryRouter(), testdata.TestServiceImpl{})