Skip to content

Commit

Permalink
code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekparwal committed Apr 20, 2020
1 parent 9b26ab4 commit 54248f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codegen/module_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,7 @@ func (g *EndpointGenerator) Generate(
endpointMeta = append(endpointMeta, endpointMetaResult.meta)
}

// sort for deterministic code gen order in endpoint.go file
sort.SliceStable(endpointMeta, func(i, j int) bool {
return endpointMeta[i].Spec.HandleID < endpointMeta[j].Spec.HandleID
})
Expand Down Expand Up @@ -1417,6 +1418,7 @@ func (generator *GatewayServiceGenerator) Generate(
) (*BuildResult, error) {
var fileMap sync.Map
var wg sync.WaitGroup
// number of go routines spawned
wgCount := 5
wg.Add(wgCount)
ch := make(chan error, wgCount)
Expand Down

0 comments on commit 54248f4

Please sign in to comment.