mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 15:04:00 +01:00 
			
		
		
		
	* Upgrade levelqueue to version 0.2.0 This adds functionality for Unique Queues * Add UniqueQueue interface and functions to create them * Add UniqueQueue implementations * Move TestPullRequests over to use UniqueQueue * Reduce code duplication * Add bytefifos * Ensure invalid types are logged * Fix close race in PersistableChannelQueue Shutdown
		
			
				
	
	
		
			15 lines
		
	
	
		
			345 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			345 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
// Copyright 2019 Lunny Xiao. All rights reserved.
 | 
						|
// Use of this source code is governed by a MIT-style
 | 
						|
// license that can be found in the LICENSE file.
 | 
						|
 | 
						|
package levelqueue
 | 
						|
 | 
						|
import "errors"
 | 
						|
 | 
						|
var (
 | 
						|
	// ErrNotFound means no elements in queue
 | 
						|
	ErrNotFound = errors.New("no key found")
 | 
						|
 | 
						|
	ErrAlreadyInQueue = errors.New("value already in queue")
 | 
						|
)
 |