Update session code outline.

This commit is contained in:
Jay
2026-04-18 14:40:53 -04:00
parent 4c17b9539a
commit 779fceb01d
4 changed files with 60 additions and 68 deletions

View File

@@ -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)
}