Add Unique Queue infrastructure and move TestPullRequests to this (#9856)
* 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
This commit is contained in:
parent
b4914249ee
commit
2c903383b5
29 changed files with 1950 additions and 516 deletions
4
vendor/gitea.com/lunny/levelqueue/error.go
generated
vendored
4
vendor/gitea.com/lunny/levelqueue/error.go
generated
vendored
|
@ -7,6 +7,8 @@ package levelqueue
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
// ErrNotFound means no element in queue
|
||||
// ErrNotFound means no elements in queue
|
||||
ErrNotFound = errors.New("no key found")
|
||||
|
||||
ErrAlreadyInQueue = errors.New("value already in queue")
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue