(connID uint64, newEndpoint string, attempt int, maxAttempts int, err error)
| 140 | } |
| 141 | |
| 142 | func HandoffFailed(connID uint64, newEndpoint string, attempt int, maxAttempts int, err error) string { |
| 143 | message := fmt.Sprintf("conn[%d] %s to %s (attempt %d/%d): %v", connID, HandoffFailedMessage, newEndpoint, attempt, maxAttempts, err) |
| 144 | return appendJSONIfDebug(message, map[string]interface{}{ |
| 145 | "connID": connID, |
| 146 | "endpoint": newEndpoint, |
| 147 | "attempt": attempt, |
| 148 | "maxAttempts": maxAttempts, |
| 149 | "error": err.Error(), |
| 150 | }) |
| 151 | } |
| 152 | |
| 153 | func HandoffSucceeded(connID uint64, newEndpoint string) string { |
| 154 | message := fmt.Sprintf("conn[%d] %s to %s", connID, HandoffSuccessMessage, newEndpoint) |
no test coverage detected