Skip to content

Commit ad4ec72

Browse files
committed
go docs
1 parent 37c08d2 commit ad4ec72

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

core/router/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
)
88

99
// Service is the interface that wraps the basic methods for a router service.
10+
// This service allows to invoke messages and queries via a message router.
1011
type Service interface {
1112
InvokeTyped(ctx context.Context, req, res protoiface.MessageV1) error
1213
InvokeUntyped(ctx context.Context, req protoiface.MessageV1) (res protoiface.MessageV1, err error)

runtime/router.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77

88
"github.com/cosmos/gogoproto/proto"
99
protov2 "google.golang.org/protobuf/proto"
10-
"google.golang.org/protobuf/reflect/protoregistry"
1110
"google.golang.org/protobuf/runtime/protoiface"
1211

1312
"cosmossdk.io/core/router"
@@ -16,18 +15,17 @@ import (
1615
"github.com/cosmos/cosmos-sdk/baseapp"
1716
)
1817

18+
// NewMsgRouterService creates a router.Service which allows to invoke messages and queries using the msg router.
1919
func NewMsgRouterService(storeService store.KVStoreService, router baseapp.MessageRouter) router.Service {
2020
return &msgRouterService{
2121
storeService: storeService,
2222
router: router,
23-
resolver: protoregistry.GlobalTypes,
2423
}
2524
}
2625

2726
type msgRouterService struct {
2827
storeService store.KVStoreService
2928
router baseapp.MessageRouter
30-
resolver protoregistry.MessageTypeResolver
3129
}
3230

3331
// InvokeTyped execute a message and fill-in a response.

0 commit comments

Comments
 (0)