summaryrefslogtreecommitdiffstats
path: root/modules/queue
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-07-20 20:09:29 +0100
committerGitHub <noreply@github.com>2021-07-20 20:09:29 +0100
commit49bd9a111125da6fd9212e41ca5473a1faff0cf2 (patch)
tree2dd670ede792ea8152ad3e53faf1a0516bf8b83b /modules/queue
parent97381aad5df7e6a4b65d9097b6b89b4e9b692528 (diff)
downloadgitea-49bd9a111125da6fd9212e41ca5473a1faff0cf2.tar.gz
gitea-49bd9a111125da6fd9212e41ca5473a1faff0cf2.zip
Fix race in log (#16490)
A race has been detected in #1441 relating to getting log levels. This PR protects the GetLevel and GetStacktraceLevel calls with a RW mutex. Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/queue')
-rw-r--r--modules/queue/queue_disk_channel_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/queue/queue_disk_channel_test.go b/modules/queue/queue_disk_channel_test.go
index bbe8a5ecbd..06cb7a7a96 100644
--- a/modules/queue/queue_disk_channel_test.go
+++ b/modules/queue/queue_disk_channel_test.go
@@ -16,7 +16,6 @@ import (
func TestPersistableChannelQueue(t *testing.T) {
handleChan := make(chan *testData)
handle := func(data ...Data) {
- assert.True(t, len(data) == 2)
for _, datum := range data {
testDatum := datum.(*testData)
handleChan <- testDatum