Skip to content

Commit

Permalink
set flag when storeresults is called
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Mar 6, 2024
1 parent f8f595c commit 203dcc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions explorer/scan/local_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,9 @@ func (s *localAssetScanner) runQueryPack() (*AssetReport, error) {
log.Debug().Msg("not storing resource data for this asset, nothing available")
} else {
_, err = conductor.StoreResults(context.Background(), &explorer.StoreResultsReq{
AssetMrn: s.job.Asset.Mrn,
Resources: data,
AssetMrn: s.job.Asset.Mrn,
Resources: data,
IsLastBatch: true,
})
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion mql/internal/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ type FuncCollector struct {
SinkDataFunc func(results []*llx.RawResult)
}

func (c *FuncCollector) SinkData(results []*llx.RawResult, isDone bool) {
func (c *FuncCollector) SinkData(results []*llx.RawResult) {
if len(results) == 0 || c.SinkDataFunc == nil {
return
}
Expand Down

0 comments on commit 203dcc2

Please sign in to comment.