Skip to content

Commit

Permalink
connection-manager: demotedToColdRemote in OutboundUniState
Browse files Browse the repository at this point in the history
`demotedToColdRemote` should never be executed in `OutboundUniState`,
outbound unidirectional connection can never be reach an inbound state,
hence it's safe to add `assert False`.
  • Loading branch information
coot committed Oct 25, 2021
1 parent f5300c5 commit 6608ed8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,7 @@ withConnectionManager ConnectionManagerArguments {
assert False $
return (UnsupportedState (UnnegotiatedSt provenance))
OutboundUniState _connId _connThread _handle ->
assert False $
return (UnsupportedState OutboundUniSt)
OutboundDupState _connId _connThread _handle _expired ->
return (OperationSuccess (mkTransition connState connState))
Expand Down

0 comments on commit 6608ed8

Please sign in to comment.