pkgsite/internal/queue
Anze Kolar 7a5705bf50 internal/queue: refactor existing queue creators into queue.New
Add a unified function for creating new queues so that separate
implementations of newQueue in cmd/frontend and cmd/worker can be
removed. Since queue.New contains the necessary logic for deciding
between GCP and InMemory, the two could be made unexported after
updating the corresponding tests.

Fixes golang/go#40097.

Change-Id: Ie509ba39ef293cca3ff95f2ce12833339c0542ea
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/241477
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-07-08 16:06:55 +00:00
..
queue.go internal/queue: refactor existing queue creators into queue.New 2020-07-08 16:06:55 +00:00
queue_test.go internal/queue: refactor existing queue creators into queue.New 2020-07-08 16:06:55 +00:00