mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 15:21:04 +00: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
14 lines
345 B
Go
14 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")
|
|
)
|