Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/server: simplify snapshot diagnostics
Address a TODO by eliminating the server.diagnosePkgs method, which had its own layer over concurrency. Instead, inline the logic as necessary into the two places it was called, and merge the two WaitGroups. In general, try to consolidate calls to server.storeDiagnostics, as a subsequent CL will change the storage schema. Also add some new utility packages for working with generics. For golang/go#57979 Change-Id: Ia739f83deb97054b141c93ed8b9f6d5f54ee1d8b Reviewed-on: https://go-review.googlesource.com/c/tools/+/546017 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Robert Findley <[email protected]>
- Loading branch information