Skip to content

Commit

Permalink
Make ingestion from guacone parallel (#884)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Mendoza <jlm@jlm.name>
  • Loading branch information
jeffmendoza committed May 31, 2023
1 parent 0d557cb commit e9063d4
Show file tree
Hide file tree
Showing 4 changed files with 271 additions and 204 deletions.
2 changes: 1 addition & 1 deletion cmd/guacone/cmd/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func getIngestor(ctx context.Context) func(processor.DocumentTree) ([]assembler.
func getAssembler(ctx context.Context, graphqlEndpoint string) func([]assembler.IngestPredicates) error {
httpClient := http.Client{}
gqlclient := graphql.NewClient(graphqlEndpoint, &httpClient)
f := helpers.GetAssembler(ctx, gqlclient)
f := helpers.GetParallelAssembler(ctx, gqlclient)
return f
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ require (
golang.org/x/crypto v0.9.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/oauth2 v0.8.0
golang.org/x/sync v0.2.0 // indirect
golang.org/x/sync v0.2.0
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
Expand Down
Loading

0 comments on commit e9063d4

Please sign in to comment.