Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Nov 21, 2024
1 parent c25f6cf commit 037d482
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions runtime/v2/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,26 +232,26 @@ func ProvideEnvironment(
}
}

type RouterBuilder struct {
type routerBuilder struct {
msgRouterServiceFactory router.RouterServiceFactory
queryRouter router.Service
}

func NewRouterBuilder(
msgRouterServiceFactory router.RouterServiceFactory,
queryRouter router.Service,
) RouterBuilder {
return RouterBuilder{
) routerBuilder {
return routerBuilder{
msgRouterServiceFactory: msgRouterServiceFactory,
queryRouter: queryRouter,
}
}

func (b RouterBuilder) BuildMsgRouter(actor []byte) router.Service {
func (b routerBuilder) BuildMsgRouter(actor []byte) router.Service {
return b.msgRouterServiceFactory(actor)
}

func (b RouterBuilder) BuildQueryRouter() router.Service {
func (b routerBuilder) BuildQueryRouter() router.Service {
return b.queryRouter
}

Expand All @@ -275,7 +275,7 @@ func DefaultServiceBindings() depinject.Config {
stf.NewKVStoreService(actor),
)
}
routerBuilder router.ServiceBuilder = RouterBuilder{
routerBuilder router.ServiceBuilder = routerBuilder{
msgRouterServiceFactory: stf.NewMsgRouterService,
queryRouter: stf.NewQueryRouterService(),
}
Expand Down

0 comments on commit 037d482

Please sign in to comment.