Skip to content

Commit

Permalink
Refactored inboundGovernorLoop error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bolt12 committed Jan 14, 2022
1 parent c13bdae commit 654e9cf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ inboundGovernor trTracer tracer serverControlChannel inboundIdleTimeout
(\(e :: SomeAsyncException) -> do
state <- atomically $ readTVar st
_ <- Map.traverseWithKey
(\connId _ ->
(\connId _ -> do
let state' = unregisterConnection connId state
traceWith trTracer
(mkRemoteTransitionTrace connId state emptyState)
(mkRemoteTransitionTrace connId state state')
)
(igsConnections state)

Expand Down

0 comments on commit 654e9cf

Please sign in to comment.