File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,9 @@ struct RouteGraphNode {
151
151
152
152
impl cmp:: Ord for RouteGraphNode {
153
153
fn cmp ( & self , other : & RouteGraphNode ) -> cmp:: Ordering {
154
- cmp:: max ( other. lowest_fee_to_peer_through_node , other. path_htlc_minimum_msat )
155
- . cmp ( & cmp :: max ( self . lowest_fee_to_peer_through_node , self . path_htlc_minimum_msat ) )
156
- . then_with ( || other. pubkey . serialize ( ) . cmp ( & self . pubkey . serialize ( ) ) )
154
+ let other_score = cmp:: max ( other. lowest_fee_to_peer_through_node , other. path_htlc_minimum_msat ) ;
155
+ let self_score = cmp:: max ( self . lowest_fee_to_peer_through_node , self . path_htlc_minimum_msat ) ;
156
+ other_score . cmp ( & self_score ) . then_with ( || other. pubkey . serialize ( ) . cmp ( & self . pubkey . serialize ( ) ) )
157
157
}
158
158
}
159
159
You can’t perform that action at this time.
0 commit comments