mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:51:57 +00:00
codeintel: qa - sort monitored uploads, not just IDs (#38935)
This commit is contained in:
parent
20b4152339
commit
fc570afc99
@ -72,6 +72,9 @@ func mainErr(ctx context.Context) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
sort.Slice(uploads, func(i, j int) bool {
|
||||
return uploads[i].id < uploads[j].id
|
||||
})
|
||||
|
||||
if err := monitor(ctx, repoNames, uploads); err != nil {
|
||||
return err
|
||||
|
||||
@ -176,7 +176,6 @@ func queryRepoState(_ context.Context, repoNames []string, uploads []uploadMeta)
|
||||
for _, upload := range uploads {
|
||||
uploadIDs = append(uploadIDs, upload.id)
|
||||
}
|
||||
sort.Strings(uploadIDs)
|
||||
|
||||
var payload struct{ Data map[string]jsonUploadResult }
|
||||
if err := internal.GraphQLClient().GraphQL(internal.SourcegraphAccessToken, makeRepoStateQuery(repoNames, uploadIDs), nil, &payload); err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user