Skip to content

Commit

Permalink
Merge pull request #95 from uber/lu.module
Browse files Browse the repository at this point in the history
Update module system initializer signature
  • Loading branch information
ChuntaoLu committed May 11, 2017
2 parents a0ba255 + b2b7099 commit a89ab21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions codegen/module_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ type ClientStub struct {
// NewDefaultModuleSystem creates a fresh instance of the default zanzibar
// module system (clients, endpoints)
func NewDefaultModuleSystem(
configDirName string,
middlewareConfig string,
h *PackageHelper,
) (*module.System, error) {
system := module.NewSystem()
Expand Down
6 changes: 1 addition & 5 deletions codegen/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ func main() {
err, fmt.Sprintf("Can't build package helper %s", configDirName),
)

moduleSystem, err := codegen.NewDefaultModuleSystem(
configDirName,
config.MustGetString("middlewareConfig"),
packageHelper,
)
moduleSystem, err := codegen.NewDefaultModuleSystem(packageHelper)
checkError(
err, fmt.Sprintf("Error creating module system %s", configDirName),
)
Expand Down
6 changes: 1 addition & 5 deletions codegen/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ func TestGenerateBar(t *testing.T) {
return
}

moduleSystem, err := codegen.NewDefaultModuleSystem(
absGatewayPath,
"./middlewares/middleware-config.json",
packageHelper,
)
moduleSystem, err := codegen.NewDefaultModuleSystem(packageHelper)
if !assert.NoError(t, err, "failed to create module system", err) {
return
}
Expand Down

0 comments on commit a89ab21

Please sign in to comment.