Update session code outline.
This commit is contained in:
@@ -4,8 +4,8 @@ import "errors"
|
||||
import "fmt"
|
||||
|
||||
var (
|
||||
InvalidIdleTimeout = errors.New("idle timeout cannot be negative")
|
||||
InvalidMaxQueueSize = errors.New("maximum queue size cannot be negative")
|
||||
InvalidKeepaliveTimeout = errors.New("keepalive timeout cannot be negative")
|
||||
InvalidMaxQueueSize = errors.New("maximum queue size cannot be negative")
|
||||
)
|
||||
|
||||
func NewConfigError(text string) error {
|
||||
@@ -15,3 +15,7 @@ func NewConfigError(text string) error {
|
||||
func NewPoolError(text string) error {
|
||||
return fmt.Errorf("pool error: %s", text)
|
||||
}
|
||||
|
||||
func NewWorkerError(id string, text string) error {
|
||||
return fmt.Errorf("worker %q error: %s", id, text)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user