mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-30 01:29:52 +01:00
2c903383b5
* 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
15 lines
345 B
Go
// 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")
|
|
)
|