Skip to content

Commit

Permalink
Allow multi-service client in clients init
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuntao Lu committed May 25, 2017
1 parent b33c7e8 commit 02b0fc1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions codegen/module_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,6 @@ func (g *ClientsInitGenerator) Generate(
continue
}

if len(module.Services) != 1 {
return nil, errors.Errorf(
"Cannot import client with multiple services: %s",
module.PackageName,
)
}

clientInfo = append(clientInfo, ClientInfoMeta{
IsPointerType: true,
FieldName: strings.Title(clients[i].ClientName),
Expand Down

0 comments on commit 02b0fc1

Please sign in to comment.