forgejo/services/archiver
Kyle Evans 6785d390f7 archiver: restructure a little bit to facilitate testing
This introduces two sync.Cond pointers to the archiver package. If they're
non-nil when we go to process a request, we'll wait until signalled (at all)
to proceed. The tests will then create the sync.Cond so that it can signal
at-will and sanity-check the state of the queue at different phases.

The author believes that nil-checking these two sync.Cond pointers on every
archive processing will introduce minimal overhead with no impact on
maintainability.
2020-05-05 16:39:40 -05:00
..
archiver.go archiver: restructure a little bit to facilitate testing 2020-05-05 16:39:40 -05:00
archiver_test.go archiver: restructure a little bit to facilitate testing 2020-05-05 16:39:40 -05:00