(connID uint64, newEndpoint string)
| 132 | ) |
| 133 | |
| 134 | func HandoffStarted(connID uint64, newEndpoint string) string { |
| 135 | message := fmt.Sprintf("conn[%d] %s to %s", connID, HandoffStartedMessage, newEndpoint) |
| 136 | return appendJSONIfDebug(message, map[string]interface{}{ |
| 137 | "connID": connID, |
| 138 | "endpoint": newEndpoint, |
| 139 | }) |
| 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) |
no test coverage detected