Skip to content

Commit e06fb3f

Browse files
authored
Fix linter error with block comment (#176)
1 parent f2b33fe commit e06fb3f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

internal/state/sort.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ func sortMatchRules(matchRules []MatchRule) {
2020
Returns true if rule1 has a higher priority than rule2.
2121
2222
From the spec:
23-
Precedence must be given to the Rule with the largest number of (Continuing on ties):
24-
- Characters in a matching non-wildcard hostname.
25-
- Characters in a matching hostname.
26-
- Characters in a matching path.
27-
- Header matches.
28-
- Query param matches.
23+
Precedence must be given to the Rule with the largest number of (Continuing on ties):
24+
- Characters in a matching non-wildcard hostname.
25+
- Characters in a matching hostname.
26+
- Characters in a matching path.
27+
- Header matches.
28+
- Query param matches.
2929
30-
If ties still exist across multiple Routes, matching precedence MUST be determined in order of the following criteria, continuing on ties:
31-
- The oldest Route based on creation timestamp.
32-
- The Route appearing first in alphabetical order by “{namespace}/{name}”.
30+
If ties still exist across multiple Routes, matching precedence MUST be determined in order of the following criteria, continuing on ties:
31+
- The oldest Route based on creation timestamp.
32+
- The Route appearing first in alphabetical order by “{namespace}/{name}”.
3333
34-
If ties still exist within the Route that has been given precedence, matching precedence MUST be granted to the first matching rule meeting the above criteria.
34+
If ties still exist within the Route that has been given precedence, matching precedence MUST be granted to the first matching rule meeting the above criteria.
3535
3636
higherPriority will determine precedence by comparing len(headers), len(query parameters), creation timestamp, and namespace name. The other criteria are handled by NGINX.
3737
*/

0 commit comments

Comments
 (0)