Limit the number of goroutines used for the update of ingress status
This commit is contained in:
parent
f553e49988
commit
3afddc4ece
13 changed files with 1302 additions and 40 deletions
37
vendor/gopkg.in/go-playground/pool.v3/errors.go
generated
vendored
Normal file
37
vendor/gopkg.in/go-playground/pool.v3/errors.go
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
package pool
|
||||
|
||||
const (
|
||||
errCancelled = "ERROR: Work Unit Cancelled"
|
||||
errRecovery = "ERROR: Work Unit failed due to a recoverable error: '%v'\n, Stack Trace:\n %s"
|
||||
errClosed = "ERROR: Work Unit added/run after the pool had been closed or cancelled"
|
||||
)
|
||||
|
||||
// ErrRecovery contains the error when a consumer goroutine needed to be recovers
|
||||
type ErrRecovery struct {
|
||||
s string
|
||||
}
|
||||
|
||||
// Error prints recovery error
|
||||
func (e *ErrRecovery) Error() string {
|
||||
return e.s
|
||||
}
|
||||
|
||||
// ErrPoolClosed is the error returned to all work units that may have been in or added to the pool after it's closing.
|
||||
type ErrPoolClosed struct {
|
||||
s string
|
||||
}
|
||||
|
||||
// Error prints Work Unit Close error
|
||||
func (e *ErrPoolClosed) Error() string {
|
||||
return e.s
|
||||
}
|
||||
|
||||
// ErrCancelled is the error returned to a Work Unit when it has been cancelled.
|
||||
type ErrCancelled struct {
|
||||
s string
|
||||
}
|
||||
|
||||
// Error prints Work Unit Cancellation error
|
||||
func (e *ErrCancelled) Error() string {
|
||||
return e.s
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue