You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hitless/errors.go
+2-42Lines changed: 2 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@ package hitless
2
2
3
3
import (
4
4
"errors"
5
-
"fmt"
6
5
)
7
6
8
7
// Configuration errors
@@ -19,12 +18,7 @@ var (
19
18
20
19
// Configuration validation errors
21
20
ErrInvalidHandoffRetries=errors.New("hitless: MaxHandoffRetries must be between 1 and 10")
22
-
ErrInvalidConnectionValidationTimeout=errors.New("hitless: ConnectionValidationTimeout must be greater than 0 and less than 30 seconds")
23
-
ErrInvalidConnectionHealthCheckInterval=errors.New("hitless: ConnectionHealthCheckInterval must be between 0 and 1 hour")
24
-
ErrInvalidOperationCleanupInterval=errors.New("hitless: OperationCleanupInterval must be greater than 0 and less than 1 hour")
25
-
ErrInvalidMaxActiveOperations=errors.New("hitless: MaxActiveOperations must be between 100 and 100000")
26
-
ErrInvalidNotificationBufferSize=errors.New("hitless: NotificationBufferSize must be between 10 and 10000")
27
-
ErrInvalidNotificationTimeout=errors.New("hitless: NotificationTimeout must be greater than 0 and less than 30 seconds")
21
+
ErrInvalidHandoffState=errors.New("hitless: Conn is in invalid state for handoff")
28
22
)
29
23
30
24
// Integration errors
@@ -34,44 +28,10 @@ var (
34
28
35
29
// Handoff errors
36
30
var (
37
-
ErrHandoffInProgress=errors.New("hitless: handoff already in progress")
38
-
ErrNoHandoffInProgress=errors.New("hitless: no handoff in progress")
39
-
ErrConnectionFailed=errors.New("hitless: failed to establish new connection")
40
-
ErrHandoffQueueFull=errors.New("hitless: handoff queue is full, cannot queue new handoff requests - consider increasing HandoffQueueSize or MaxWorkers in configuration")
31
+
ErrHandoffQueueFull=errors.New("hitless: handoff queue is full, cannot queue new handoff requests - consider increasing HandoffQueueSize or MaxWorkers in configuration")
41
32
)
42
33
43
-
// Dead error variables removed - unused in simplified architecture
0 commit comments