]> source.dussan.org Git - gitea.git/commit
services: archiver: appease golangci-lint, lock queueMutex
authorKyle Evans <kevans@FreeBSD.org>
Tue, 5 May 2020 21:56:39 +0000 (16:56 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 5 May 2020 21:56:39 +0000 (16:56 -0500)
commit3b8eac493b9aee8b169bd1f81f70d5a40cee1c0a
treea972e51b0f0e773c452cdae8943b670b3e9ce16b
parent5434d6eaf88fba15fc2143d01cb694814851da37
services: archiver: appease golangci-lint, lock queueMutex

Locking/unlocking the queueMutex is allowed, but not required, for
Cond.Signal() and Cond.Broadcast().  The magic at play here is just a little
too much for golangci-lint, as we take the address of queueMutex and this is
mostly used in archiver.go; the variable still gets flagged as unused.
services/archiver/archiver_test.go