Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Mar 2, 2017
1 parent cea7471 commit f400991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/keyvalue/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {
svc, err := service.WithModule(
"yarpc",
yarpc.New(
yarpc.CreateThriftServiceFunc(NewYARPCThriftHandler),
yarpc.ServiceCreateFunc(NewYARPCThriftHandler),
),
service.WithModuleRole("service"),
).WithOptions(
Expand Down
2 changes: 1 addition & 1 deletion modules/yarpc/yarpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import (
type ServiceCreateFunc func(svc service.Host) ([]transport.Procedure, error)

// New creates a YARPC Module from a service func
func New(hookup ServiceCreateFunc, options ...ServiceOption) service.ServiceCreateFunc {
func New(hookup ServiceCreateFunc, options ...ModuleOption) service.ModuleCreateFunc {
return func(host service.Host) (service.Module, error) {
return newYARPCModule(host, hookup, options...)
}
Expand Down

0 comments on commit f400991

Please sign in to comment.