mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Fix queue test (#30646)
Fix #30643 The old test code is not stable due to the data-race described in the TODO added at that time. Make it stable, and remove a debug-only field from old test code.
This commit is contained in:
		| @@ -40,8 +40,6 @@ type WorkerPoolQueue[T any] struct { | ||||
| 	workerMaxNum    int | ||||
| 	workerActiveNum int | ||||
| 	workerNumMu     sync.Mutex | ||||
|  | ||||
| 	workerStartedCounter int32 | ||||
| } | ||||
|  | ||||
| type flushType chan struct{} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user