-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add additional dial failure types
- Loading branch information
1 parent
862d7d7
commit d499564
Showing
3 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
INSERT INTO dial_error_types (id, name) | ||
SELECT v.id, v.name | ||
FROM (VALUES | ||
(0, 'Unknown'), | ||
(1, 'I/O Timeout'), | ||
(2, 'Connection Refused'), | ||
(3, 'Relay Circuit Failed'), | ||
(4, 'Relay No Reservation'), | ||
(5, 'Security Negotiation Failed'), | ||
(6, 'Concurrent Dial Succeeded'), | ||
(7, 'Concurrent Dial Failed'), | ||
(8, 'Connections Per IP Limit Exceeded'), | ||
(9, 'Stream Reset'), | ||
(10, 'Relay Resource Limit Exceeded'), | ||
(11, 'Error Opening Hop Stream to Relay'), | ||
(12, 'Dial Backoff') | ||
) AS v(id, name) | ||
WHERE NOT EXISTS ( | ||
SELECT 1 FROM dial_error_types WHERE id = v.id | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters