Skip to content

Commit

Permalink
formatting adjustments to land the change for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ktoso committed Nov 7, 2024
1 parent 4bec15e commit c3c09d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .swift-format
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lineBreakBeforeControlFlowKeywords" : false,
"lineBreakBeforeEachArgument" : true,
"lineBreakBeforeEachGenericRequirement" : true,
"lineLength" : 120,
"lineLength" : 240,
"maximumBlankLines" : 1,
"respectsExistingLineBreaks" : true,
"prioritizeKeepingFunctionOutputTogether" : true,
Expand Down
4 changes: 2 additions & 2 deletions Sources/ClusterMembership/Node.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public struct Node: Hashable, Sendable, Comparable, CustomStringConvertible {
}
}

public extension Node {
extension Node {
// Silly but good enough comparison for deciding "who is lower node"
// as we only use those for "tie-breakers" any ordering is fine to be honest here.
static func < (lhs: Node, rhs: Node) -> Bool {
public static func < (lhs: Node, rhs: Node) -> Bool {
if lhs.protocol == rhs.protocol, lhs.host == rhs.host {
if lhs.port == rhs.port {
return (lhs.uid ?? 0) < (rhs.uid ?? 0)
Expand Down

0 comments on commit c3c09d0

Please sign in to comment.