mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
Previously, the QueuedCount method was confusing because:
1. By default, it actually returned the count for both the 'queued' and
'errored' states (despite the name just have 'Queued').
2. There was an additional boolean flag for also returning entries in
the 'processing' state, but reduced clarity at call-sites.
So I've changed the method to take a bitset instead, mirroring the
just-added Exists API, and renamed the method to a more
generic 'CountByState'.
While this does make call-sites a bit more verbose, I think the
clarity win makes the change an overall positive one.
|
||
|---|---|---|
| .. | ||
| aggregation | ||
| background | ||
| compression | ||
| database | ||
| discovery | ||
| gitserver | ||
| pipeline | ||
| priority | ||
| query | ||
| scheduler | ||
| store | ||
| timeseries | ||
| types | ||
| BUILD.bazel | ||
| CODENOTIFY | ||
| insights.go | ||